The node:20-bookworm runner has python3 but no pip, so the PyYAML install failed before any check ran. Install python3-yaml with apt instead, remove the duplicate cluster-only kubectl step, and keep the two cluster-free Make targets. Also remove the stale v1.0/pending-review claims, drop the old api.pulse hostname, and move the deploy status below the runbook.
33 lines
865 B
YAML
33 lines
865 B
YAML
name: infra-ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "feat/**"
|
|
pull_request:
|
|
|
|
jobs:
|
|
manifests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# The runner image has python3 but neither pip nor PyYAML.
|
|
- name: Install validation dependency
|
|
run: |
|
|
if ! python3 -c 'import yaml' 2>/dev/null; then
|
|
apt-get update -qq
|
|
apt-get install -y -qq python3-yaml
|
|
fi
|
|
|
|
# Cluster-free guardrails: namespace-only kinds, numeric UIDs,
|
|
# securityContext, probes, resources, env/Secret refs, image tags, Services.
|
|
- name: Static manifest guardrails
|
|
run: make gate1-check STATIC_ONLY=1
|
|
|
|
# Falls back to YAML parsing when kubectl or a cluster is unavailable.
|
|
- name: YAML parse or client dry-run
|
|
run: make validate
|