From 612b1133cf67664e665adf58a717ad26eb8184ee Mon Sep 17 00:00:00 2001 From: chaodu-agent <274062505+chaodu-agent@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:40:36 -0500 Subject: [PATCH] ci: run the manifest validator on pull requests New workflow manifests.yml: pull_request on deploy/k8s/** and itself, ubuntu-latest, contents: read, concurrency cancel-in-progress, 10 min timeout. ci.yml is unchanged (still manual dispatch). Verified locally in a venv with PyYAML: validate_manifests.py exit 0, test_validate_manifests.py 58 tests OK, yamllint clean. --- .github/workflows/manifests.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/manifests.yml diff --git a/.github/workflows/manifests.yml b/.github/workflows/manifests.yml new file mode 100644 index 0000000..d01d66d --- /dev/null +++ b/.github/workflows/manifests.yml @@ -0,0 +1,36 @@ +name: manifests + +# Lightweight check for the Kubernetes manifests. The default `ci` workflow is manual only and +# builds the Rust workspace; this one needs only python3 and PyYAML, runs on a GitHub-hosted +# runner, reads no secrets and never builds Rust. It runs the static validator and its mutation +# tests whenever a pull request touches deploy/k8s or this file. +on: + pull_request: + paths: + - deploy/k8s/** + - .github/workflows/manifests.yml + +permissions: + contents: read + +concurrency: + group: manifests-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + validate: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Install PyYAML + run: python3 -m pip install --user pyyaml + + - name: Kubernetes manifest validator + run: python3 deploy/k8s/validate_manifests.py + + - name: Validator mutation tests + run: python3 deploy/k8s/test_validate_manifests.py