Merge pull request #90 from silarhi/claude/fix-ci-permissions-MMar9 #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Continuous Integration" | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'refs/pull/*' | |
| - main | |
| jobs: | |
| lint-js: | |
| name: Lint JS/JSX (ESLint & Prettier) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| coverage: none | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction --prefer-dist --no-progress | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Run ESLint | |
| run: yarn lint:eslint | |
| - name: Run Prettier | |
| run: yarn lint:prettier | |
| matrix: | |
| name: Generate job matrix | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.matrix.outputs.matrix }} | |
| steps: | |
| - name: Gather CI configuration | |
| id: matrix | |
| uses: laminas/laminas-ci-matrix-action@v1 | |
| qa: | |
| name: QA Checks | |
| needs: [matrix] | |
| runs-on: ${{ matrix.operatingSystem }} | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }} | |
| steps: | |
| - name: ${{ matrix.name }} | |
| uses: laminas/laminas-continuous-integration-action@v1 | |
| with: | |
| job: ${{ matrix.job }} |