Skip to content

CI

Every job runs on the organisation's own runners: the boxd-public scale set for this public repository. No job uses a GitHub-hosted runner, and every workflow and action is pinned by commit.

The organisation's reusable workflow

.github/workflows/ci.yml calls reusable-plugin-ci.yml from we-the-rebel-alliance/.github, pinned by commit. It runs on a pull request, on a push to master and in the merge queue, so every plugin repository runs one CI.

The called workflow's jobs report their checks as plugin / <job>: check runs npm run lint, the typecheck, the committed-dist/ freshness check, npm test (the unit, host and pack projects), plugin-kit check and plugin-kit docs --check; docs runs mkdocs build --strict with the pinned requirements in docs/requirements.txt; actionlint lints the workflows with the organisation's runner labels; and install installs the pushed commit in OpenCode as a smoke test.

The required check

The organisation's ruleset requires a check named exactly ci, and a called workflow reports its own jobs' names, never that one. So ci.yml keeps a top-level job named ci: it needs plugin, runs even when plugin failed or was cancelled (if: always()), and fails unless plugin succeeded, so a skipped job can never pass the required check.

A person runs the same steps locally with npm ci --ignore-scripts && npm run lint && npm run check; npm run check runs the typecheck, the bundle, npm test and both plugin-kit checks. See Testing.

The other workflows

  • .github/workflows/docs.yml calls reusable-docs-publish.yml. It builds the site strictly and publishes it to GitHub Pages on a push to master. The called deploy job runs only then, so a pull request or a manual run builds and stops.
  • .github/workflows/release.yml calls reusable-plugin-release.yml on a tag v*. The called workflow checks that the tag is on master and names package.json's version, packs the tarball with the conformance report and bare-filename SHA256SUMS, and creates the GitHub Release. See Release.

Pull requests

A pull request from a fork waits for approval before its jobs run. CI checks master and every pull request; it never pushes to a branch.

Published from master, the site is https://we-the-rebel-alliance.github.io/plaud-plugin/.