Merge pull request #16 from Benji377/renovate/major-eslint-monorepo #13
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: Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| actions: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - run: npm ci | |
| - name: Build core (types needed by dependents) | |
| run: npm run build --workspace=packages/core | |
| - name: Install SARIF formatter | |
| run: npm install --no-save @microsoft/eslint-formatter-sarif | |
| - name: Run ESLint | |
| run: | | |
| npx eslint packages/*/src \ | |
| --format @microsoft/eslint-formatter-sarif \ | |
| --output-file eslint-results.sarif | |
| continue-on-error: true | |
| - name: Upload SARIF results | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: eslint-results.sarif | |
| category: eslint |