Temp branch #16339
Workflow file for this run
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: Inspections | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, labeled, synchronize] | |
| # Cancel superseded runs for the same branch. The group is named explicitly | |
| # rather than derived from github.workflow: several files share the workflow | |
| # name `Inspections` and would otherwise cancel each other. | |
| concurrency: | |
| group: formidable-jscs-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| runESLintInspection: | |
| if: contains(github.event.pull_request.labels.*.name, 'run analysis') | |
| name: Run ESLint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: "22" | |
| - name: Cache dependencies | |
| id: cache-npm | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.npm | |
| node_modules | |
| key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node-modules- | |
| - name: Install dependencies | |
| if: steps.cache-npm.outputs.cache-hit != 'true' | |
| run: npm ci --include=dev --legacy-peer-deps | |
| - name: Run ESLint | |
| run: ./node_modules/.bin/eslint . |