Merge pull request #48 from EdulyCom/revert-ai-review-opus-model-alias #73
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: Unit tests | |
| # Everything under ai-review/lib/ is logic that can be tested without paying | |
| # for a live model run — measured at 6-59 minutes and $1.74-$38.59 each. | |
| # Issue #25 (a P2-only diff hard-failing the gate) shipped because the gate | |
| # arithmetic lived inline in a github-script block with no test lane. | |
| # | |
| # Discovery is by directory, so adding a *.test.js file needs no edit here. | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| node-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Run node:test | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| node --version | |
| # Quoted so node expands the glob itself rather than the shell — | |
| # `node --test <dir>` does NOT scan a directory, it tries to load it | |
| # as a module entry point and fails with MODULE_NOT_FOUND. | |
| node --test "ai-review/lib/**/*.test.js" |