Skip to content

Commit 466aa5a

Browse files
test(ci): preserve dev PR coverage and align testing policy
Co-Authored-By: Paperclip <noreply@paperclip.ing>
1 parent 0aea8a1 commit 466aa5a

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

‎testing.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ keyboard behavior, or data integrity.
256256
checks on Blacksmith Linux and GitHub-hosted Windows.
257257
[WFL tests](.github/workflows/wfl-tests.yml) runs the complete WFL suite via
258258
`wfl --execution-timeout 1200 scripts/run_tests.wfl` on
259-
`blacksmith-2vcpu-ubuntu-2404`. Both workflows run for pushes and pull requests to
260-
`main` and support manual dispatch.
259+
`blacksmith-2vcpu-ubuntu-2404`. Both workflows run for pushes to `main`, pull requests to `main` and `dev`,
260+
and manual dispatch.
261261

262262
WFL tests pulls `bsbyrdwfl/wfl:nightly` from Docker Hub for every run, resolves
263263
the image digest, and uses that immutable image for that run's runtime checks.

‎tests/tooling/ci_targets.test.wfl‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Keep dev PR coverage while preserving the main-only push boundary.
2+
include from "../../scripts/test_support.wfl"
3+
4+
store repo_root as path_dirname of (path_dirname of script_directory)
5+
6+
describe "Governance rollout CI targets":
7+
test "both workflows admit dev PRs without broadening push events":
8+
for each workflow_name in ["governance.yml", "wfl-tests.yml"]:
9+
store workflow_path as path_join of repo_root and ".github/workflows" and workflow_name
10+
store workflow_text as test_read_text of workflow_path
11+
expect workflow_text to contain " pull_request:\n branches: [main, dev]"
12+
expect workflow_text to contain " push:\n branches: [main]\n"
13+
end for
14+
end test
15+
end describe

0 commit comments

Comments
 (0)