| 11 | pull-requests: write | 11 | pull-requests: write |
| 12 | | 12 | |
| 13 | jobs: | 13 | jobs: |
| | 14 | run-eslint: |
| | 15 | name: ✅ Check ESLint on PR |
| | 16 | runs-on: ubuntu-latest |
| | 17 | # Only needs to run when code is changed |
| | 18 | if: github.event.action == 'opened' || github.event.action == 'synchronize' |
| | 19 | |
| | 20 | steps: |
| | 21 | - name: Checkout Repository |
| | 22 | # Checkout |
| | 23 | # https://github.com/marketplace/actions/checkout |
| | 24 | uses: actions/checkout@v4.2.2 |
| | 25 | |
| | 26 | - name: Setup Node.js |
| | 27 | # Setup Node.js environment |
| | 28 | # https://github.com/marketplace/actions/setup-node-js-environment |
| | 29 | uses: actions/setup-node@v4.3.0 |
| | 30 | with: |
| | 31 | node-version: 20 |
| | 32 | |
| | 33 | - name: Run npm install |
| | 34 | run: npm ci |
| | 35 | |
| | 36 | - name: Run ESLint |
| | 37 | # Action ESLint |
| | 38 | # https://github.com/marketplace/actions/action-eslint |
| | 39 | uses: sibiraj-s/action-eslint@v3.0.1 |
| | 40 | with: |
| | 41 | token: ${{ secrets.GITHUB_TOKEN }} |
| | 42 | eslint-args: '--ignore-path=.gitignore --quiet' |
| | 43 | extensions: 'js,ts' |
| | 44 | annotations: true |
| | 45 | ignore-patterns: | |
| | 46 | dist/ |
| | 47 | lib/ |
| | 48 | |
| 14 | label-by-size: | 49 | label-by-size: |
| 15 | name: 🏷️ Label PR by Size | 50 | name: 🏷️ Label PR by Size |
| 16 | # This job should run after all others, to prevent possible concurrency issues | 51 | # This job should run after all others, to prevent possible concurrency issues |