fix(ci): keep workflow guard changes on narrow cd profile
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 25s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-30 08:28:33 +08:00
parent eb93cc833f
commit ff7febbf62
2 changed files with 32 additions and 0 deletions

View File

@@ -35,6 +35,21 @@ def test_deploy_marker_k8s_files_stay_on_controlled_runtime_profile() -> None:
assert "k8s/awoooi-prod/kustomization.yaml)" in text
def test_workflow_secret_transport_sources_stay_on_controlled_runtime_profile() -> None:
text = _workflow_text()
assert "workflow secret-transport and guard-only" in text
expected_sources = [
".gitea/workflows/cd-dev.yaml)",
".gitea/workflows/code-review.yaml)",
".gitea/workflows/deploy-alerts.yaml)",
".gitea/workflows/e2e-health.yaml)",
".gitea/workflows/run-migration.yml)",
"scripts/ci/check-gitea-step-env-secrets.js)",
]
for source in expected_sources:
assert source in text
def test_onboarding_warning_step_template_stays_on_controlled_runtime_profile() -> None:
text = _workflow_text()
assert "onboarding warning-step workflow is" in text