Goal: a team that deploys with GitHub Actions can gate a deployment on Kollaudo’s verdict with one
step, and send its test results with another, without installing Node.js or learning the CLI. A team
on Azure DevOps has a recipe tried on a real pipeline.
Our deployment workflow on GitHub Actions has a production job. Before it deploys, one step asks
Kollaudo whether the version passed in staging:
- uses: kollaudo/action@v0
with:
url: ${{ vars.KOLLAUDO_URL }}
token: ${{ secrets.KOLLAUDO_GATE_TOKEN }}
component: api
environment: staging
On pass the job goes on. On fail or unknown it stops, and the summary of the run says why,
with a link to each test run, as kollaudo verdict does. If Kollaudo doesn’t answer, it stops too.
The version defaults to the commit of the workflow, the one our CI sent its results with.
Where it lives and how it runs (ADR 0020): in its own
repository, kollaudo/action, since the GitHub Marketplace lists only actions at the root of their
own repository. The root action is the gate, with kollaudo/action/push@v0 next to it for test
results. They are composite actions that set up Node.js 24 and run npx @kollaudo/cli at the
version of the release: no JavaScript bundle to build and review, and the same code as the CLI,
already tested. Tags follow the releases of Kollaudo (v0.4.0), with a moving major tag (v0).
Inputs: url, token, component, environment, version (default: github.sha) and
require.
Outcomes, as in ADR 0019: the step
fails on fail, unknown and no answer. Letting unknown or no answer through, for development
and preview environments, is an explicit input, allow: unknown or allow: unknown,no-verdict,
never the default.
Job summary: the output of kollaudo verdict, with its reasons and links to the test runs,
written to the summary of the workflow run, where people look first when a deployment stops.
Outputs: outcome and message, so later steps can use them, and a summary as a table, once
the CLI gives the verdict as JSON (kollaudo verdict --json,
a good first issue). The first release doesn’t
wait for it: the exit code is enough to gate.
kollaudo/action/push@v0: kollaudo push with the same inputs as the CLI, path for the report
files (CTRF or JUnit XML, with glob patterns), and if: ${{ !cancelled() }} shown in every
example, so that failed tests are sent too.
The Playwright and pytest recipes show the actions, and keep the CLI as the alternative for any
other CI.
A recipe with unit tests in JUnit, push, deployed and a verdict step before a deployment
stage. It can’t run in our CI, so it is published once it has run on a real pipeline, on a personal
Azure DevOps organization. It needs nothing that 0.3.0 doesn’t have.
a workflow that runs Kollaudo from its image as a service container, sends results, and checks that the step passes on pass, fails on fail and unknown, fails when Kollaudo is down, and lets unknown through only with allow
Push
the same workflow: it sends a CTRF report and a JUnit report, then asks for the verdict
The workflow runs on every pull request of the action’s repository, and against each release of
Kollaudo.