Docs
CI integration
Run nono verification in GitHub Actions, publish a Markdown summary and fail the job on regressions.
In CI, nono runs the same deterministic verification as on your machine: start the app, run nono verify, and let the exit code decide the job. No account or API key is needed.
What a CI job should do#
- Install dependencies.
- Build the application.
- Start it in the background.
- Wait until it responds.
- Run
nono verify. - Upload sanitized proof artifacts.
- Write a Markdown job summary.
- Fail when required checks fail.
Commit .nono/config.yaml, .nono/journeys/ and .nono/baselines/ so CI has the journeys and approved baselines to compare against.
Exit codes#
| Code | Verdict | CI outcome |
|---|---|---|
0 |
VERIFIED |
pass |
1 |
FAILED or REGRESSION |
fail |
2 |
EXECUTION_ERROR, or the command failed (for example an invalid config) |
fail — the journey did not run |
3 |
UNVERIFIED |
fail by default — required checks did not execute |
Treat 3 as a failure unless you have a deliberate reason not to. An unverified run proves nothing.
GitHub Actions example#
Pre-release.
nono-proofis not on npm yet. Until it is, build the CLI from source in CI or vendor the packed tarball. The example uses the published form you will be able to use after release.
name: nono
on:
pull_request:
push:
branches: [main]
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build app
run: npm run build
- name: Install nono and Chromium
run: |
npm i -g nono-proof # once published; see note above
npx playwright install --with-deps chromium
- name: Start app
run: |
npm run start > app.log 2>&1 &
for i in $(seq 1 60); do
curl -fsS http://127.0.0.1:3000 > /dev/null && exit 0
sleep 1
done
echo "App did not become ready" && cat app.log && exit 1
- name: Verify
id: verify
run: nono verify --all --url http://127.0.0.1:3000 --json > nono-result.json
- name: Job summary
if: always()
run: |
for report in $(jq -r '.runs[].report.markdown' nono-result.json); do
cat "$report" >> "$GITHUB_STEP_SUMMARY"
done
- name: Upload proof
if: always()
uses: actions/upload-artifact@v4
with:
name: nono-proof
path: |
nono-result.json
.nono/runs/*/manifest.json
.nono/reports/*.md
retention-days: 14
The Verify step's exit code fails the job on FAILED, REGRESSION, EXECUTION_ERROR or UNVERIFIED. The summary and upload steps use if: always() so evidence is available when verification fails.
With --all, the JSON output is { "exitCode": …, "runs": [ … ] } and each run carries report.markdown and report.html paths, which the summary step uses. For a single journey without --all, the output is one run object, so use jq -r '.report.markdown' instead. To look up runs afterwards, nono runs --json prints { "runs": [ … ] } newest first, so the latest run ID is nono runs --limit 1 --json | jq -r '.runs[0].runId'.
What gets uploaded#
Uploaded artifacts stay within your CI provider. The example uploads manifests and Markdown reports only, which contain redacted metadata and check results. Be deliberate about uploading anything else:
.nono/reports/*.htmlembeds up to eight checkpoint screenshots as images..nono/runs/*/capture.jsonholds the redacted network, console and DOM-probe capture..nono/artifacts/holds screenshots and DOM snapshots.
Screenshots are masked according to your configuration, but can still show data on the page. Restrict artifact access if you upload them.
Reference workflow#
This repository's .github/workflows/nono-verify.yml is a reusable workflow that does all of the above for the demo shop: it builds nono from source, starts the app, runs nono verify <journey> --json --url …, writes a job summary, uploads only manifests and reports, and fails on any non-zero exit code. Its inputs (journey, working-directory, start-command, app-url, ready-path, nono-command, node-version) let you point it at another app in the same repository.
Never approve baselines in CI#
CI must not run nono baseline approve. A pipeline that approves whatever it observes turns every regression into the new expected behaviour. Baselines should change only through a reviewed commit to .nono/baselines/, approved by a person locally. nono enforces this by default: baseline approve refuses to run when the CI environment variable is set, unless --allow-ci is passed.
If behaviour changes intentionally:
- Locally, run the journey against the new code.
nono baseline propose <journey> --reason "...".- Review with
nono baseline show <journey>, thennono baseline approve <journey> --proposal <proposalId>. - Commit the new baseline directory and the updated
CURRENTin the same pull request as the code change, so reviewers see both.
Pull request reporting#
Every run writes a Markdown report to .nono/reports/<runId>.md with the verdict, failed checks, regression details and unverified conditions; nono report <runId> --format md prints the same report. Write it to $GITHUB_STEP_SUMMARY as shown, or post it as a PR comment with your preferred action.
Tips#
- Pin the base URL with
--urlso CI never verifies against an unexpected host. Non-loopback hosts must also be listed intarget.allowedHosts. - Set any
{ env: NAME }values your journeys reference (for example from CI secrets); a missing variable makes the runEXECUTION_ERROR. - Reset or seed test data before verification so journeys start from a known state.
- Keep
retention-daysshort; evidence is most useful for the PR it belongs to. - See Troubleshooting for browser dependency and startup failures.