Skip to content

Merge pull request #48 from EdulyCom/revert-ai-review-opus-model-alias #73

Merge pull request #48 from EdulyCom/revert-ai-review-opus-model-alias

Merge pull request #48 from EdulyCom/revert-ai-review-opus-model-alias #73

Workflow file for this run

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"