Skip to content

Commit 64b2dff

Browse files
committed
[CI] Speed up githooks
1 parent 00ae0a4 commit 64b2dff

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

fastlane/Fastfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,8 @@ lane :sources_matrix do
710710
size: ['Sources', xcode_project],
711711
public_interface: ['Sources'],
712712
ruby: ['fastlane'],
713-
swiftformat_include: ["Sources", "DemoApp", "DemoAppUIKit", "StreamVideoTests", "StreamVideoSwiftUITests", "StreamVideoUIKitTests"],
714-
swiftformat_exclude: ["**/Generated", "**/generated", "**/protobuf", "**/OpenApi"]
713+
swiftformat_include: ['Sources', 'DemoApp', 'DemoAppUIKit', 'StreamVideoTests', 'StreamVideoSwiftUITests', 'StreamVideoUIKitTests'],
714+
swiftformat_exclude: ['**/Generated', '**/generated', '**/protobuf', '**/OpenApi']
715715
}
716716
end
717717

lefthook.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
pre-commit:
2-
parallel: true
2+
parallel: false
33
jobs:
4-
- run: bundle exec fastlane run_swift_format
4+
- run: mint run swiftformat --config .swiftformat --exclude '**/Generated', '**/generated', '**/protobuf', '**/OpenApi' {staged_files}
5+
glob: "*.{swift}"
6+
stage_fixed: true
7+
skip:
8+
- merge
9+
- rebase
10+
11+
- run: mint run swiftlint lint --config .swiftlint.yml --fix --progress --quiet --reporter json {staged_files}
12+
glob: "*.{swift}"
13+
stage_fixed: true
14+
skip:
15+
- merge
16+
- rebase
17+
18+
- run: mint run swiftlint lint --config .swiftlint.yml --strict --progress --quiet --reporter json {staged_files}
519
glob: "*.{swift}"
620
stage_fixed: true
721
skip:

0 commit comments

Comments
 (0)