Skip to content
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

SwiftLint recommends a double run when fixing #784

Merged
merged 11 commits into from
Feb 27, 2023
8 changes: 6 additions & 2 deletions .github/workflows/macOS-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,19 @@ jobs:
cancel-in-progress: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2 # Enable `git diff` in GitHub Actions
- name: Discover typos
run: |
pip3 install --upgrade pip
pip3 install codespell
codespell # See .codespellrc for args
- name: SwiftLint
run: |
# Adding --fix flag makes CI print only errors that cannot be fixed automatically
swiftlint --fix
# 1. Make automated fixes that are possible
# 2. git diff to see what automated fixes were made
# 3. See https://github.com/realm/SwiftLint#xcode explains why the double run
swiftlint --fix && git diff && swiftlint
- name: Resolve dependencies
run: swift package resolve
- name: Build
Expand Down