Skip to content

Commit 8d34cb7

Browse files
fix: add a step that installs swiftlint
1 parent e688727 commit 8d34cb7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/swiftlint.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: SwiftLint
22

33
on:
4-
push:
5-
branches:
6-
- '**' # Run on all branches
74
pull_request:
85
branches:
96
- '**' # Run on all branches for PRs
@@ -17,8 +14,12 @@ jobs:
1714
- name: Checkout repository
1815
uses: actions/checkout@v3
1916

20-
# Step 2: Run SwiftLint and parse errors
21-
- name: Lint
17+
# Step 2: Install SwiftLint
18+
- name: Install SwiftLint
19+
run: brew install swiftlint
20+
21+
# Step 3: Run SwiftLint and parse errors
22+
- name: Run SwiftLint
2223
run: |
2324
set -o pipefail
2425
swiftlint lint --strict --quiet | sed -E 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 title=Lint error,file=\1,line=\2,col=\3::\5\n\1:\2:\3/'

0 commit comments

Comments
 (0)