Skip to content

Commit be7478b

Browse files
authored
Enhance SwiftLint workflow with caching and reporter
Added caching for SwiftLint and updated reporter.
1 parent c3de2ef commit be7478b

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/swiftlint.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
name: SwiftLint
2-
32
on:
43
pull_request:
4+
push:
5+
branches: [main, develop]
56

67
jobs:
78
lint:
89
runs-on: macos-latest
9-
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v4
13-
13+
14+
- name: Cache SwiftLint
15+
uses: actions/cache@v3
16+
with:
17+
path: /usr/local/bin/swiftlint
18+
key: swiftlint-${{ runner.os }}
19+
1420
- name: Install SwiftLint
1521
run: brew install swiftlint
16-
22+
1723
- name: Run SwiftLint
18-
run: swiftlint --strict
24+
run: swiftlint --strict --reporter github-actions-logging

0 commit comments

Comments
 (0)