.github/workflows/. None of them deploys: seven check code, and docker-publish.yml publishes the image a host can then deploy. Deploys happen on your hosting platform (for Railway, on every push to the connected branch, see below).
All workflows use permissions: contents: read at the workflow level and check out with persist-credentials: false. docker-publish.yml grants packages: write (and, for the attestation, id-token: write and attestations: write) to its jobs only. Node comes from .nvmrc.
ci.yml
Runs on every push and pull request to main, with two jobs.
verify (Generate + verify)
.github/workflows/ci.yml
npm run wa -- generateregenerates the registry, locale list and generated regions, andgit diff --exit-codefails if anything changed. If this step fails, runnpx gato generatelocally and commit the result.npm run verifyruns lint, typecheck, unit tests, the production build,turbo run test typecheck lintfor workspace packages, and the Git hook tests.
integration (Integration tests, Postgres)
Runs npm run test:integration against a postgres:16 service, with INTEGRATION_DATABASE_URL pointing to a <slug>_test database.
Module CI steps
Before the integration tests, the job runs the steps in thewa:ci-integration region:
.github/workflows/ci.yml
gato generate fills this region from the ciSteps field of each installed module’s manifest. Today only the uploads module contributes steps (from ci/uploads.integration-steps.yml): it starts MinIO and creates the <slug>-uploads bucket for the S3 integration tests. Without that module the region is empty. MinIO here serves tests only and has nothing to do with production storage.
Don’t edit the region by hand.
gato add and gato remove update it, and the verify job fails if it drifts from what the generator produces.e2e.yml
Runs Playwright end-to-end tests on every push to main, and on pull requests to main unless they only touch docs/**, root *.md files or .husky/**. Timeout: 30 minutes.
The test-e2e job:
- starts
postgres:16(database<slug>_e2e) and Mailpit as services; - installs Chromium (cached by Playwright version);
- runs
npx prisma migrate dev --name init; - runs
npm run test:e2e, which builds the app and starts two standalone servers, one withMULTI_ORG=falseand one withMULTI_ORG=true; - uploads the HTML report as the
playwright-reportartifact (kept 14 days), even on failure.
mutation.yml
Runs only on manual dispatch (workflow_dispatch), for example before a release. Mutation tests are slow, so day to day you run them locally.
The stryker job (timeout 360 minutes):
- restores incremental Stryker reports from the cache, so only changed code is re-mutated;
- runs
npm run test:mutation(unit tests); - runs the
wa:ci-integrationsteps (MinIO foruploads, as inci.yml); - runs
npm run test:mutation:integration; - runs
npm run test:mutation:gate, which enforces minimum mutation scores for critical files listed inmutation-gate.json; - uploads the reports as the
mutation-reportartifact.
security-audit.yml
Runs when package.json or package-lock.json changes on a push or pull request to main (on PRs, also when the workflow itself changes), and every Monday at 06:00 UTC.
.github/workflows/security-audit.yml
docker-publish.yml
Builds the Dockerfile natively on an amd64 and an arm64 runner, merges both into one multi-arch image and pushes it to ghcr.io/<owner>/<repo>. A push to main publishes edge and sha-<short commit>; a v1.2.3 tag publishes 1.2.3, 1.2 and latest. It never runs on pull requests and uses only GITHUB_TOKEN. Tags, attestations and pulling the image are described in Published images.
helm.yml
Runs on pushes and pull requests to main that change anything under deploy/, and manually. It lints the chart in deploy/helm/gatojs, runs its helm-unittest cases and validates three renders (defaults, s3 with two replicas, Ingress on) with kubeconform. See Kubernetes.
security-secret-scan.yml
Runs on every push and pull request to main. The trufflehog job checks out the full history (fetch-depth: 0) and runs TruffleHog on the commits between the base and the head of the PR or push, reporting verified and unknown results.
If it fires, treat the secret as leaked: rotate it first, then remove it from history.
workflow-lint.yml
Runs when anything under .github/workflows/ changes on a push or pull request to main. The actionlint job lints the workflow files with actionlint, catching syntax errors, bad expressions and shell issues before they break CI.
CI and deploys
Railway deploys on push regardless of the CI result. To deploy only green commits, enable Wait for CI on the Railway service. The deploy then waits for all GitHub Actions workflows triggered for that commit, includinge2e.yml, and is skipped if any fails. mutation.yml runs only manually, so deploys never wait for it.
See Deploy on Railway for the rest of the setup.
Kit-only workflows
The GatoJS repository itself has more workflows:kit.yml, kit-mutation.yml, packages.yml, publish-packages.yml, release.yml and docker-platforms.yml. They test and publish the kit and its CLI and are not copied into projects. See Releases.
Related
Testing
Unit, integration, e2e and mutation tests.
gato generate
What the generator writes, including CI regions.