🧪 Add edge case tests for applyMergePatch #136
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| # Runs on every PR to main and on pushes to main, so type errors and test | |
| # failures are caught before merge (release.yml only runs on version tags). | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-typecheck-test: | |
| name: Build, typecheck & test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build extension, worker & WASM | |
| run: node scripts/build.mjs | |
| - name: Typecheck (src + tests) | |
| run: npx tsc --noEmit -p tsconfig.json | |
| - name: Unit tests | |
| run: npm test |