Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Checks run on every push once the repository is public

Țugui Dragoșdfd257c444a3
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 2ef9e89c..6830b1df 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -1,24 +1,29 @@
name: Checks
-# Runs only when started by hand. Peel needs Swift 6.4 (Xcode 27), and GitHub's standard macOS image has Xcode 26,
-# so a run on every push would fail. Xcode 27 is only on a preview image for larger runners. Once the toolchain
-# check below passes on the standard image, add `push:` and `pull_request:` here.
+# Runs on every push and pull request while the repository is public, where GitHub's standard runners are free.
+# While it is private, only a run started by hand does anything.
on:
+ push:
+ pull_request:
workflow_dispatch:
permissions:
contents: read
+concurrency:
+ group: checks-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
test:
- runs-on: macos-latest
+ if: github.event_name == 'workflow_dispatch' || !github.event.repository.private
+ # Peel needs Swift 6.4, which comes with Xcode 27.
+ runs-on: xcode-27
steps:
- uses: actions/checkout@v7
- - name: Use the newest Xcode on the runner
+ - name: Show the toolchain
run: |
- newest=$(ls -d /Applications/Xcode_*.app 2>/dev/null | sort -V | tail -1)
- [ -n "$newest" ] && sudo xcode-select -s "$newest"
xcodebuild -version
swift --version
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0e7be390..7407c0df 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -72,7 +72,7 @@ PEEL_TEST_THIS_MAC=1 swift test --package-path Packages/PeelCore --filter Sugges
- `Scripts/`: `sync_localizations.py`, which keeps the catalogs in step with the code, and `release.sh`, which
builds, signs, notarizes, and checks a release.
- `readme-assets/`: the screenshots the README shows.
-- `.github/`: the manual test workflow, the issue forms, and the pull request template.
+- `.github/`: the test workflow, the issue forms, and the pull request template.
## The rules a change must not break