This repo holds the KaaS-team organisation profile page and the shared GitHub Actions workflows that the org's other repos call. Maintainers of those repos use the workflows, and anyone visiting the org on GitHub sees the profile.
There is nothing to install. Clone the repo to edit it; you need git, bash and make.
git clone https://github.com/KaaS-team/.github
cd .githubmake check runs the docs check, the workflow check and their tests. It needs no network.
make checkscripts/check-docs.sh
docs check: ok
scripts/check-workflows.sh
workflows check: ok (4 workflows)
tests/check-docs-test.sh
ok good docs pass
ok missing link in README fails
ok missing link in nested md fails
ok unknown make target fails
ok missing script fails
ok links inside code fences are ignored
ok this repo passes
tests/check-workflows-test.sh
ok good staged workflows pass
ok missing node-check fails
ok a live workflow on the old runtime fails
ok a live workflow listed in remove.txt is skipped
ok a live workflow with a staged replacement is skipped
ok a workflow without workflow_call fails
ok an action on a branch fails
ok an action on a commit sha passes
ok this repo passes
The docs check fails when a relative link in any markdown file points to a missing file, or when a sh or bash block in this README names a script or make target that does not exist.
The workflow check fails when go-check.yml or node-check.yml is missing, when a workflow is not reusable, when an action is not pinned to @vN or a commit sha, or when a workflow still uses the old JavaScript runtime. It checks every live workflow, plus any change staged in ci/.
| Path | What it is |
|---|---|
profile/README.md |
The org profile page shown on github.com/KaaS-team. Keep its repo table in step with the org's public repos. |
.github/workflows/go-check.yml |
Reusable workflow: set up Go from go.mod, optionally install a factory release, then run make check. |
.github/workflows/node-check.yml |
Reusable workflow: set up Node, run npm ci, then npm test. |
.github/workflows/dco.yml |
Reusable workflow: every commit in a pull request must carry a matching Signed-off-by line. |
.github/workflows/mutations.yml |
Reusable workflow: set up Go or Node, then run make check-mutations. |
ci/ |
Workflow changes staged for a person to apply; cloud sessions cannot push .github/workflows. See ci/README.md. |
scripts/apply-ci.sh |
Copies the staged workflows into .github/workflows and deletes the ones ci/remove.txt lists. |
scripts/check-docs.sh |
The docs check. |
scripts/check-workflows.sh |
The workflow check. |
tests/check-docs-test.sh |
Tests for the docs check, using temporary fixture directories. |
tests/check-workflows-test.sh |
Tests for the workflow check, using temporary fixture directories. |
The workflows target the Go factory (a single factory binary) and Node repos. The old JavaScript-runtime check workflow is retired and deleted.
Call a workflow from another repo with a pinned tag. The v1 tag holds the old workflows; the Go and Node workflows ship in v2 once it is tagged.
jobs:
check:
uses: KaaS-team/.github/.github/workflows/go-check.yml@v2
with:
factory-version: v9.1.0All three check workflows take optional runner and timeout-minutes. go-check.yml also takes go-version-file, factory-version and command; node-check.yml takes node-version and command; mutations.yml takes go-version-file and node-version. The calling repo must define the make targets or npm scripts the workflow runs.
- kaas.team for the project and services.
- profile/README.md to edit the org profile.
- LICENSE: Apache-2.0. Commits are signed off under the DCO (
git commit -s).