Skip to content

Commit 9f0a30d

Browse files
committed
chore: update ci workflow
1 parent 0662b77 commit 9f0a30d

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- master
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
test:
1115
runs-on: macOS-latest
@@ -18,9 +22,6 @@ jobs:
1822
- sdk: iphonesimulator
1923
destination: platform=iOS Simulator,name=iPhone 13 Pro,OS=latest
2024

21-
- sdk: macosx
22-
destination: arch=x86_64
23-
2425
- sdk: appletvsimulator
2526
destination: platform=tvOS Simulator,name=Apple TV,OS=latest
2627

@@ -36,21 +37,22 @@ jobs:
3637

3738
- name: Build and Test
3839
run: |
39-
set -o pipefail && xcodebuild clean build test \
40+
set -o pipefail
41+
xcodebuild -resolvePackageDependencies
42+
xcodebuild clean build test \
4043
-scheme "$SCHEME" \
4144
-sdk "$SDK" \
4245
-destination "$DESTINATION" \
4346
-configuration Debug \
4447
-enableCodeCoverage YES \
48+
-resultBundlePath "./${{ matrix.env.sdk }}.xcresult" \
4549
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
4650
env:
4751
SDK: ${{ matrix.env.sdk }}
4852
DESTINATION: ${{ matrix.env.destination }}
4953

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+
uses: codecov/[email protected]
56+
with:
57+
xcode: true
58+
xcode_archive_path: "./${{ matrix.env.sdk }}.xcresult"

0 commit comments

Comments
 (0)