Skip to content

Commit 84aa1a3

Browse files
committed
Install SwiftLint via official macOS pkg in CI
1 parent 806ed92 commit 84aa1a3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ jobs:
1818
- name: Select Xcode
1919
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
2020

21+
- name: Install SwiftLint
22+
run: |
23+
curl -L https://github.com/realm/SwiftLint/releases/download/0.54.0/SwiftLint.pkg -o SwiftLint.pkg
24+
sudo installer -pkg SwiftLint.pkg -target /
25+
2126
- name: Run SwiftLint
22-
uses: realm/SwiftLint@v1
27+
run: swiftlint lint --reporter github
2328

2429
- name: Build package
2530
run: swift build -v

0 commit comments

Comments
 (0)