ci(gitea): add smoke-test workflow for the ci-sapphira runner

A two-trigger workflow — manual (workflow_dispatch) and on every push to
dev — that runs a single shell step on 'runs-on: native' to verify the
sapphira runner is healthy: hostname/whoami/pwd plus probes for the
common ZeroQ-workflow tools (nix, git, python3) and the act_runner
environment variables (RUNNER_NAME, RUNNER_TEMP).

Useful as a quick health check after any change to modules/server/
gitea-runner.nix, secrets/gitea-runner-registration.env, or after a
NixOS upgrade.
This commit is contained in:
oqyude committed 2026-10-19 18:23:18 +03:00
1 parent 71826d3b99
commit fb46ffeadb
1 file changed
+29
+29
View File
@@ -0,0 +1,29 @@
name: test-runner
# Manual trigger via Gitea UI; auto-fires on every push to dev so a fresh
# commit to the runner config itself can verify the pipeline is healthy.
on:
workflow_dispatch:
push:
branches: [dev]
jobs:
smoke:
# `native` matches the label our sapphira runner (modules/server/gitea-runner.nix)
# advertises via `labels = [ "native:host" ];` — `native:host` parses as
# label "native" with host-executor schema in upstream act_runner.
runs-on: native
steps:
- name: hello
run: |
echo "Runner reports OK from $(hostname)"
echo "uid=$(id -un) gid=$(id -gn)"
pwd
echo "--- tools probe ---"
command -v nix && nix --version
command -v git && git --version
command -v python3 && python3 --version
echo "--- runner self-declared labels ---"
# sanity printout, fails the step if anything obvious is missing.
test -n "$RUNNER_NAME" && echo "RUNNER_NAME=$RUNNER_NAME"
test -n "$RUNNER_TEMP" && echo "RUNNER_TEMP=$RUNNER_TEMP"