Skip to content

CI

Every job runs on the organisation's boxd-public runner, and every action is pinned by commit. There are two workflows.

.github/workflows/ci.yml

  • docs creates a virtual environment, installs docs/requirements.txt and runs mkdocs build --strict. It runs on every pull request and every push to master.
  • ci needs docs and runs the plugin's whole gate: the committed bundle check, lint, the type check, the tests, the pack test, plugin-kit check and plugin-kit docs --check.

ci is the required status check. A docs build that fails stops it, so a broken link or a page missing from nav fails the pull request.

.github/workflows/docs.yml

The publish workflow builds the site and deploys it to GitHub Pages. Its deploy job carries:

if: github.event_name == 'push' && github.ref == 'refs/heads/master'

A pull request builds the site in the docs job of ci.yml and never deploys. A manual run from another branch builds the site and stops. Only a push to master deploys.

Locally

Run the same commands:

npm ci --ignore-scripts
npm run check
python3 -m venv .venv && .venv/bin/pip install -r docs/requirements.txt
.venv/bin/mkdocs build --strict

See Testing and checks for what each check proves.