Skip to content

Commit 7d0be6e

Browse files
Update swift-pacakge.yml
Updated Code Coverage upload steps
1 parent 6038812 commit 7d0be6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/swift-pacakge.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131
- name: Generate Code Coverage File
3232
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
3333
run: |
34-
xcrun llvm-cov export --instr-profile=.build/x86_64-apple-macosx/debug/codecov/default.profdata .build/x86_64-apple-macosx/debug/MethodNotificationCenterPackageTests.xctest/Contents/MacOS/MethodNotificationCenterPackageTests > ./info.lcov
34+
xcrun llvm-cov export --format=lcov --instr-profile=".build/debug/codecov/default.profdata" ".build/debug/MethodNotificationCenterPackageTests.xctest/Contents/MacOS/MethodNotificationCenterPackageTests" > "./codecov.lcov"
3535
3636
- name: Upload Code Coverage
3737
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
38-
uses: codecov/codecov-action@v1
38+
uses: codecov/codecov-action@v2
3939
with:
4040
token: ${{ secrets.CODECOV_TOKEN }}
41-
file: ./info.lcov
41+
file: ./codecov.lcov
4242
verbose: true

0 commit comments

Comments
 (0)