From a5dd7a750b2986da303f60fa4a4e4d24516b884d Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Thu, 19 Feb 2026 11:26:45 -0500 Subject: [PATCH] ci: only run 'swiftlint' when macos/ changes This saves us some work on the majority of our commits. I think we'd only miss commits to .github/ and the nix environment with this filter, but we can expand the filter's scope as needed. --- .github/workflows/test.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bcc028dd4..4d7b1292b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,10 +11,25 @@ concurrency: cancel-in-progress: true jobs: + paths: + if: github.repository == 'ghostty-org/ghostty' + runs-on: namespace-profile-ghostty-xsm + outputs: + macos: ${{ steps.filter.outputs.macos }} + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 + id: filter + with: + filters: | + macos: + - 'macos/**' + required: name: "Required Checks: Test" runs-on: namespace-profile-ghostty-xsm needs: + - paths - build-bench - build-dist - build-examples @@ -929,8 +944,9 @@ jobs: run: nix develop -c prettier --check . swiftlint: - if: github.repository == 'ghostty-org/ghostty' + if: github.repository == 'ghostty-org/ghostty' && needs.paths.outputs.macos == 'true' runs-on: namespace-profile-ghostty-macos-tahoe + needs: paths timeout-minutes: 60 steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2