mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 11:35:48 +00:00
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.
This commit is contained in:
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user