krz/hutch

an ios client for sourcehut

clone: git clone https://gitbay.org/krz/hutch.git

a74223fef8f77b0dc37520a99e61e3d7edf2d9b1

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-08-07T21:07:19Z

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.
 .github/workflows/test.yml | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

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