Skip to content

Commit c54e3d3

Browse files
authored
Merge pull request #4 from ReactorKit/feat/codecov
Update codecov step in ci.yml
2 parents cb05d64 + 74bc16b commit c54e3d3

File tree

1 file changed

+30
-32
lines changed

1 file changed

+30
-32
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,33 @@ jobs:
2222
destination: platform=tvOS Simulator,name=Apple TV,OS=latest
2323

2424
steps:
25-
- uses: actions/checkout@v2
26-
27-
- name: Select Xcode 12.4
28-
run: sudo xcode-select -s /Applications/Xcode_12.4.app
29-
30-
- name: Generate Xcode Project
31-
run: swift package generate-xcodeproj --enable-code-coverage
32-
33-
- name: Build and Test
34-
run: |
35-
set -o pipefail && xcodebuild clean build test \
36-
-project "$PROJECT" \
37-
-scheme "$SCHEME" \
38-
-sdk "$SDK" \
39-
-destination "$DESTINATION" \
40-
-configuration Debug \
41-
-enableCodeCoverage YES \
42-
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
43-
env:
44-
PROJECT: WeakMapTable.xcodeproj
45-
SCHEME: WeakMapTable-Package
46-
SDK: ${{ matrix.env.sdk }}
47-
DESTINATION: ${{ matrix.env.destination }}
48-
49-
- name: Upload Code Coverage
50-
run: |
51-
bash <(curl -s https://codecov.io/bash) \
52-
-X xcodeplist \
53-
-J WeakMapTable \
54-
-t "$CODECOV_TOKEN"
55-
env:
56-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
25+
- uses: actions/checkout@v2
26+
27+
- name: Select Xcode 12.4
28+
run: sudo xcode-select -s /Applications/Xcode_12.4.app
29+
30+
- name: Generate Xcode Project
31+
run: swift package generate-xcodeproj --enable-code-coverage
32+
33+
- name: Build and Test
34+
run: |
35+
set -o pipefail && xcodebuild clean build test \
36+
-project "$PROJECT" \
37+
-scheme "$SCHEME" \
38+
-sdk "$SDK" \
39+
-destination "$DESTINATION" \
40+
-configuration Debug \
41+
-enableCodeCoverage YES \
42+
-resultBundlePath "./${{ matrix.env.sdk }}.xcresult" \
43+
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
44+
env:
45+
PROJECT: WeakMapTable.xcodeproj
46+
SCHEME: WeakMapTable-Package
47+
SDK: ${{ matrix.env.sdk }}
48+
DESTINATION: ${{ matrix.env.destination }}
49+
50+
- name: Upload coverage to Codecov
51+
uses: codecov/codecov-action@v3.1.0
52+
with:
53+
xcode: true
54+
xcode_archive_path: "./${{ matrix.env.sdk }}.xcresult"

0 commit comments

Comments
 (0)