Skip to content

Commit 533f8d2

Browse files
Add CI job dependency ordering guard test
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 4f9ba36 commit 533f8d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_ci_workflow_quality_gates.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ def test_ci_workflow_uses_make_targets_for_quality_gates():
2020
assert "run: make compile" in ci_workflow
2121
assert "run: make test" in ci_workflow
2222
assert "run: make build" in ci_workflow
23+
24+
25+
def test_ci_workflow_job_dependencies_enforce_stage_order():
26+
ci_workflow = Path(".github/workflows/ci.yml").read_text(encoding="utf-8")
27+
28+
assert "lint-test:\n needs: architecture-guards" in ci_workflow
29+
assert "build:\n needs: lint-test" in ci_workflow

0 commit comments

Comments
 (0)