name: CI on: push: branches: [main] pull_request: # A new push to the same branch or pull request cancels the run still in progress. concurrency: group: ci-${{ github.ref }} cancel-in-progress: true permissions: contents: read jobs: test: runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 with: node-version-file: .nvmrc cache: npm - run: npm ci - run: npm run lint - run: npm run typecheck - run: npm test - run: npm run build