| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | jobs: |
| 12 | check: |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | - uses: actions/checkout@v7 |
| 16 | - uses: actions/setup-node@v7 |
| 17 | with: |
| 18 | node-version-file: .nvmrc |
| 19 | cache: npm |
| 20 | - run: npm ci |
| 21 | - run: npm run build |
| 22 | - run: npm run format:check |