Commit 57b345b2ba

57b345b2ba3c4f8ac22cc842278286111bb32308

parent: a55d551c95

Unsigned

cmc <hello@cleberg.net> · 2026-08-07 21:07 UTC

Exclude root .txt docs from the test workflow

Add *.txt to the Tests workflow paths-ignore so a ROADMAP/SCOPE/SECURITY
edit no longer burns a macOS runner. Single-star (root only), matching the
existing *.md rule; a doc edit alongside code still runs the suite.

Layout: unified · split

.github/workflows/test.yml +7 −5
@@ -3,10 +3,12 @@ name: Tests
33# builds.sr.ht is the canonical CI for this project, but it has no macOS images
44# and will not add them, so xcodebuild cannot run there. This job exists to run
55# the test plan on the GitHub mirror; see builds/swift-ci.yml for the rest.
6# Prose only: the root docs and Docs/. Both patterns are single-star, so they
7# match those two levels and nothing deeper — a .md that ever lands inside a
8# source directory still runs the suite. A skip rule that is too broad is how a
9# real change slips through ungated.
6# Prose only: the root docs (*.md, *.txt — ROADMAP/SCOPE/SECURITY and friends)
7# and Docs/. Every pattern is single-star, so they match those levels and
8# nothing deeper — a .md or .txt that ever lands inside a source directory still
9# runs the suite. A skip rule that is too broad is how a real change slips
10# through ungated. paths-ignore skips the run only when *all* changed files
11# match, so a doc edit alongside code still tests.
1012#
1113# pull_request only, by design. GitHub runs the suite against the merge result
1214# (PR merged into main), so a green PR already validates exactly what lands on
@@ -23,7 +25,7 @@ name: Tests
2325# docs-only PR waiting forever.
2426on:
2527 pull_request:
26 paths-ignore: ['*.md', 'Docs/*.md']
28 paths-ignore: ['*.md', '*.txt', 'Docs/*.md']
2729 workflow_dispatch:
2830
2931# Without this, GITHUB_TOKEN inherits the repository default, which is