File tree 2 files changed +40
-0
lines changed
2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - " *"
10
+
11
+ concurrency :
12
+ group : ci-${{ github.ref }}
13
+ cancel-in-progress : true
14
+
15
+ jobs :
16
+ library :
17
+ runs-on : macos-latest
18
+ strategy :
19
+ matrix :
20
+ platform :
21
+ - iOS Simulator,name=iPhone 14 Pro Max
22
+ - macOS
23
+ - tvOS Simulator,name=Apple TV
24
+ - watchOS Simulator,name=Apple Watch Series 7 (45mm)
25
+
26
+ steps :
27
+ - uses : actions/checkout@v3
28
+ - name : Run tests
29
+ run : PLATFORM="${{ matrix.platform }}" make test-library
Original file line number Diff line number Diff line change
1
+ PLATFORM ?= iOS Simulator,name=iPhone 14 Pro Max
2
+
3
+ .PHONY : test-library
4
+ test-library :
5
+ xcodebuild test \
6
+ -scheme functions-swift \
7
+ -destination platform=" $( PLATFORM) "
8
+
9
+ .PHONY : format
10
+ format :
11
+ swift format -i -r ./Sources ./Tests ./Package.swift
You can’t perform that action at this time.
0 commit comments