Skip to content

Commit 20d2423

Browse files
committed
fix code-cov related probem
1 parent 26972f3 commit 20d2423

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ jobs:
2323
run: swift build --build-tests
2424
- name: Run Test
2525
run: swift test --enable-code-coverage
26+
- name: Export Code Coverage
27+
run: xcrun llvm-cov export -format="lcov" .build/debug/CSVPackageTests.xctest/Contents/MacOS/CSVPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
2628
- name: Upload coverage to Codecov
2729
uses: codecov/[email protected]
30+
with:
31+
files: ./info.lcov
2832
linux:
2933
runs-on: ubuntu-20.04
3034
container: swiftlang/swift:nightly-focal
@@ -37,6 +41,4 @@ jobs:
3741
- name: Build
3842
run: swift build --build-tests --enable-test-discovery
3943
- name: Run Test
40-
run: swift test --enable-test-discovery --enable-code-coverage
41-
- name: Upload coverage to Codecov
42-
uses: codecov/[email protected]
44+
run: swift test --enable-test-discovery

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
# CSV
22

33
<p align="center">
4-
<a>
5-
<img src="https:/img.shields.io/github/workflow/status/benkoska/csv.swift/main/master" />
4+
<a href="https://github.com/benkoska/CSV.Swift/actions">
5+
<img src="https://img.shields.io/github/workflow/status/benkoska/csv.swift/Main%20Workflow/master" alt="CI Status" />
66
</a>
7-
</p>
7+
<a href="https://codecov.io/gh/benkoska/CSV.Swift">
8+
<img src="https://img.shields.io/codecov/c/gh/benkoska/csv.swift?token=YKK7P9ARXM" alt="Code Coverage" />
9+
</a>
10+
<a href="https://github.com/alchemy-swift/alchemy/releases">
11+
<img src="https://img.shields.io/github/release/benkoska/csv.swift.svg" alt="Latest Release">
12+
</a>
13+
<a href="https://github.com/alchemy-swift/alchemy/blob/main/LICENSE">
14+
<img src="https://img.shields.io/github/license/benkoska/csv.swift.svg" alt="License">
15+
</a>
16+
<a href="https://swift.org">
17+
<img src="https://img.shields.io/badge/Swift-5.5-orange.svg" alt="Swift Version">
18+
</a>
19+
</p>
20+

0 commit comments

Comments
 (0)