docs: update README with asciinema URL #15
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| # Cancel in-progress runs when new commits are pushed | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Test on multiple Node.js LTS versions | |
| node-version: [18, 20, 22] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Verify zero runtime dependencies | |
| run: | | |
| if grep -q '"dependencies".*{.*[^}]' package.json; then | |
| echo "ERROR: Runtime dependencies found!" | |
| exit 1 | |
| fi | |
| echo "✓ Zero runtime dependencies verified" | |
| - name: Check TypeScript (fail fast) | |
| run: npx tsc --noEmit | |
| - name: Run tests | |
| run: npm test | |
| - name: Build | |
| run: npm run build | |
| - name: Dogfood (flakiness + output consistency) | |
| run: npm run dogfood |