Skip to content

Update SwiftFormat minimum version and output version in CI #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
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
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--swiftversion 6.0

# SwiftFormat Version
--minversion 0.55.3
--minversion 0.56.2

# Options

Expand Down Expand Up @@ -478,4 +478,4 @@
## Prefer constant values to be on the right-hand-side of expressions.
### Options:
### --yodaswap (default: always)
--rules yodaConditions
--rules yodaConditions