File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 6
6
- master
7
7
pull_request :
8
8
9
+ concurrency :
10
+ group : ${{ github.head_ref || github.run_id }}
11
+ cancel-in-progress : true
12
+
9
13
jobs :
10
14
test :
11
15
runs-on : macOS-latest
18
22
- sdk : iphonesimulator
19
23
destination : platform=iOS Simulator,name=iPhone 13 Pro,OS=latest
20
24
21
- - sdk : macosx
22
- destination : arch=x86_64
23
-
24
25
- sdk : appletvsimulator
25
26
destination : platform=tvOS Simulator,name=Apple TV,OS=latest
26
27
@@ -36,21 +37,22 @@ jobs:
36
37
37
38
- name : Build and Test
38
39
run : |
39
- set -o pipefail && xcodebuild clean build test \
40
+ set -o pipefail
41
+ xcodebuild -resolvePackageDependencies
42
+ xcodebuild clean build test \
40
43
-scheme "$SCHEME" \
41
44
-sdk "$SDK" \
42
45
-destination "$DESTINATION" \
43
46
-configuration Debug \
44
47
-enableCodeCoverage YES \
48
+ -resultBundlePath "./${{ matrix.env.sdk }}.xcresult" \
45
49
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
46
50
env :
47
51
SDK : ${{ matrix.env.sdk }}
48
52
DESTINATION : ${{ matrix.env.destination }}
49
53
50
- - name : Upload Code Coverage
51
- run : |
52
- bash <(curl -s https://codecov.io/bash) \
53
- -X xcodeplist \
54
- -J "$CODECOV_PACKAGE_NAME"
55
- env :
56
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
54
+ - name : Upload coverage to Codecov
55
+
56
+ with :
57
+ xcode : true
58
+ xcode_archive_path : " ./${{ matrix.env.sdk }}.xcresult"
You can’t perform that action at this time.
0 commit comments