This repository was archived by the owner on Sep 8, 2026. It is now read-only.
runtime: pivot, don't stop — bias the loop toward pivots, few true stops #37
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install dev dependencies (typecheck only) | |
| run: npm install --no-audit --no-fund | |
| - name: Format check | |
| run: npx --yes prettier@3.3 --check . | |
| - name: Typecheck (tsc --noEmit) | |
| run: npm run typecheck | |
| - name: Tests (smoke + bean-check) | |
| run: npm test | |
| - name: Zero runtime-dependency guard | |
| run: | | |
| node -e "const p=require('./package.json'); if (p.dependencies && Object.keys(p.dependencies).length) { console.error('bean ships zero runtime dependencies (devDependencies only)'); process.exit(1); } console.log('ok: zero runtime dependencies');" | |
| # The Rust runtime (bean 2.0) is gated by the differential conformance oracle: the JS | |
| # bean-check is the reference, the Rust port must match it on every fixture. | |
| conformance: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Differential conformance (JS reference vs Rust) | |
| run: node test/conformance.mjs |