Skip to content

Commit

Permalink
000
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftanon committed Aug 28, 2024
1 parent 77d3ee2 commit 63f92c7
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,6 @@ jobs:
with:
fetch-depth: 0

- name: Set up Swift
uses: SwiftyLab/setup-swift@v1
with:
swift-version: '5.9.2'

- name: Debug Environment Differences
run: |
echo "Swift version:"
swift --version
echo "SwiftFormat version:"
swiftformat --version
echo "Current working directory:"
pwd
echo "Environment variables:"
env
echo "SwiftFormat configuration:"
cat .swiftformat
- name: Fail if files need formatting
- name: Reformat Files
run: |
set -e
swiftformat --lint . | grep -q "file needs formatting" && (echo "Files need formatting. Please run 'swiftformat .' locally."; exit 1)
swiftformat .

0 comments on commit 63f92c7

Please sign in to comment.