name: CI # Typecheck, test and build on every pull request, and on main so a direct # push cannot leave the branch red without anyone noticing. on: push: branches: - main pull_request: workflow_dispatch: jobs: check: name: Typecheck, test, build runs-on: ubuntu-latest container: image: node:22 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 with: path: ~/.npm key: npm-${{ hashFiles('package-lock.json') }} restore-keys: npm- # Nothing here drives a browser: the adapter tests run against # captured payloads. Skipping the download keeps the job to seconds. - name: Install run: npm ci env: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' - name: Typecheck run: npm run typecheck - name: Test run: npm test - name: Build run: npm run build