From 01aba5947d6526a56cc4337bb159cc68b354e46b Mon Sep 17 00:00:00 2001 From: Nolin McFarland Date: Fri, 30 May 2025 15:38:10 -0400 Subject: [PATCH] Update SwiftFormat minimum version and output version in CI --- .github/workflows/ci.yml | 8 ++++++-- .swiftformat | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee19975..3f22345 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,10 +25,14 @@ jobs: xcode-version: latest - name: Install Brewfile dependencies - run: brew bundle install + run: | + brew update --quiet + brew bundle install - name: Run SwiftFormat in lint mode - run: swiftformat --lint . + run: | + swiftformat --version + swiftformat --lint . - name: Install package dependencies run: swift package resolve diff --git a/.swiftformat b/.swiftformat index 816bc51..4170ec3 100644 --- a/.swiftformat +++ b/.swiftformat @@ -2,7 +2,7 @@ --swiftversion 6.0 # SwiftFormat Version ---minversion 0.55.3 +--minversion 0.56.2 # Options @@ -478,4 +478,4 @@ ## Prefer constant values to be on the right-hand-side of expressions. ### Options: ### --yodaswap (default: always) ---rules yodaConditions \ No newline at end of file +--rules yodaConditions