Install swiftlint via Brewfile if macOS >= 13 (install breaks on macOS <= 12).

Only install `peripheryapp/periphery` tap if macOS >= 13 (install breaks on macOS <= 12).

Resolve #594

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2024-10-24 07:49:43 -04:00
parent 9e3b079ec8
commit cab684ba60
No known key found for this signature in database
2 changed files with 2 additions and 9 deletions

View file

@ -5,10 +5,8 @@ brew "swift-format"
brew "swiftformat"
brew "trash"
# Already installed on GitHub Actions runner.
# brew "swiftlint"
tap "peripheryapp/periphery"
if OS.mac? && MacOS.version >= :ventura
brew "swiftlint"
tap "peripheryapp/periphery"
cask "periphery"
end

View file

@ -20,8 +20,3 @@ printf $'==> 👢 Bootstrapping (%s)\n' "$(script/version)"
# Install Homebrew tools
rm -f Brewfile.lock.json
brew bundle install --no-upgrade --verbose
# swiftlint is already installed on GitHub Actions runners.
if [[ ! -x "$(command -v swiftlint)" ]]; then
brew install swiftlint
fi