name: shared-httpd mod_whp_symlink PR check run-name: mod_whp_symlink probe test for ${{ gitea.actor }} ## Pull-request gate for the shared-httpd tenant-symlink module. build-push.yaml ## only runs on trunk (and publishes); this builds the amd64 shared-httpd image ## locally (nothing is pushed, no secrets) and runs the live probe test against ## it. WHP_SYMTEST_REQUIRE=1: a missing docker/image or a failed assertion ## fails the job. Run the same thing locally: docs/shared-httpd-symlink-module.md. on: pull_request: paths: - 'src/mod_whp_symlink/**' - 'configs/whp-symlink.conf' - 'Dockerfile.shared-httpd' - 'scripts/tests/whp-symlink-module.test.sh' - '.gitea/workflows/shared-httpd-symlink-pr.yaml' jobs: Symlink-Module-Probe: runs-on: ubuntu-latest timeout-minutes: 40 steps: - name: Checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 # Runner images differ on whether they are root and whether sudo exists. - name: Install shellcheck run: | if ! command -v shellcheck >/dev/null 2>&1; then (apt-get update && apt-get install -y shellcheck) || (sudo apt-get update && sudo apt-get install -y shellcheck) fi shellcheck --version - name: Lint the probe test run: | bash -n scripts/tests/whp-symlink-module.test.sh shellcheck -S warning scripts/tests/whp-symlink-module.test.sh - name: Build shared-httpd (amd64, local only, nothing pushed) run: docker build -f Dockerfile.shared-httpd -t shared-httpd:pr-probe . - name: Probe test (fails the job on any failed assertion) run: WHP_SYMTEST_REQUIRE=1 ./scripts/tests/whp-symlink-module.test.sh shared-httpd:pr-probe