Skip to content

GitHub Actions Workflows 🟑 BETA

GitHub Actions mirrors the repository checks that the self-hosted Forgejo runner also executes.

Where this topic sits in the Developer guide

Workflows

.github/workflows/ contains the build, release, security and desktop workflows. ci.yml is the pull-request gate; release.yml builds the desktop installers from version tags.

Workflow map

Workflow Purpose
ci.yml Guards, i18n, security, Windows adapters, mobile checks, docs publish
security.yml Supply chain, OSV, secrets, Python, SBOM, workflow lint, headers
codeql.yml Static analysis
release.yml Desktop packaging and self-extractor on version tags
desktop-macos.yml Unsigned macOS arm64 artifact
gbgov-release.yml, gbgov-windows.yml Government edition artifacts
advisory-draft.yml, bulletin-mirror.yml Advisory feed maintenance

Jobs in ci.yml

Job Gate
security Security gates on changed paths
changes Detect migrations and BotBook changes
i18n Locale catalogue gate
windows Windows agent/VM adapters
guard Structural adequacy, error ratchet, CSS and design-system gates
docs-publish Publish BotBook on main

Conventions

Each job checks out the repository, uses the shared Cargo cache, and reports a single clear failure. The runner is Ubuntu on GitHub and alm-ci with the ubuntu-latest label on Forgejo.

Shape of a test job in ci.yml (abridged)

  1. Checkout the repository.
  2. Install the platform dependency (for example libpq on Windows).
  3. Restore the Cargo cache.
  4. Run the named check or test.
  5. Upload evidence on failure.

Why --bin botserver matters

botserver is a binary crate with no library target. cargo test -p botserver tests nothing; CI uses cargo test -p botserver --bin botserver.

Limits

  • CI is authoritative for builds; local release builds are not supported outside packaging.
  • Pull requests never publish BotBook β€” only pushes to main do.
  • Boteval runs on CI only and is never re-run locally for verification.
  • No secret is stored in a workflow file; publishing uses repository secrets as environment variables.