.github/workflows/lint.yml
raw| 1 | name: Lint |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main, master, next] |
| 6 | pull_request: |
| 7 | |
| 8 | permissions: |
| 9 | checks: write |
| 10 | contents: write |
| 11 | |
| 12 | jobs: |
| 13 | run-linters: |
| 14 | name: Run linters |
| 15 | runs-on: ubuntu-latest |
| 16 | |
| 17 | steps: |
| 18 | - name: Check out repo |
| 19 | uses: actions/checkout@v5 |
| 20 | |
| 21 | - name: Set up node |
| 22 | uses: actions/setup-node@v5 |
| 23 | with: |
| 24 | node-version: 20 |
| 25 | cache: 'npm' |
| 26 | |
| 27 | - name: Install dependencies |
| 28 | run: npm ci |
| 29 | |
| 30 | - name: Run linters |
| 31 | run: npm run lint |