Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ jobs:
- name: Use Xcode 15.0.1
run: sudo xcode-select -switch /Applications/Xcode_15.0.1.app
- name: Install SwiftLint
run: brew install swiftlint
# Pinned to 0.55.1 (the version documented in .swiftlint.yml / CLAUDE.md)
# via the official release binary. An unpinned `brew install` pulls the
# latest SwiftLint, which breaks `--strict` lint on unrelated PRs, and
# current Homebrew refuses to install a formula from a loose file path.
run: |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this comment. Helps explain the issue and fix perfectly

curl -fsSL -o "$RUNNER_TEMP/swiftlint.zip" \
https://github.com/realm/SwiftLint/releases/download/0.55.1/portable_swiftlint.zip
unzip -o "$RUNNER_TEMP/swiftlint.zip" -d "$RUNNER_TEMP/swiftlint" >/dev/null
chmod +x "$RUNNER_TEMP/swiftlint/swiftlint"
echo "$RUNNER_TEMP/swiftlint" >> "$GITHUB_PATH"
- name: Run SwiftLint
run: swiftlint --strict
run: |
swiftlint version
swiftlint --strict
Loading