Skip to content

Commit 78aad6f

Browse files
committed
Set-up Codecov coverage report.
1 parent e462e20 commit 78aad6f

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Install stable toolchain
14-
uses: dtolnay/rust-toolchain@stable
15-
- name: Install llvm-cov
16-
run: cargo install cargo-llvm-cov
17-
- name: Run tests and collect coverage
18-
run: cargo llvm-cov --no-cfg-coverage --cobertura --output-path ./coverage.xml
19-
- name: Upload coverage to Codecov
20-
uses: codecov/codecov-action@v5
13+
- uses: dtolnay/rust-toolchain@stable
14+
- run: cargo install cargo-llvm-cov
15+
- run: cargo llvm-cov --no-cfg-coverage --cobertura --output-path ./coverage.xml
16+
- uses: codecov/codecov-action@v5
2117
with:
2218
token: ${{ secrets.CODECOV_TOKEN }}
2319
files: ./coverage.xml

README.md

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

33
[![Crates.io][crates-badge]][crates-url]
4-
![Code coverage][coverage-badge]
4+
[![codecov][coverage-badge]][coverage-url]
55
![build Linux][build-badge-linux]
66
![build Musl][build-badge-musl]
77
![build WASM][build-badge-wasm]
@@ -13,9 +13,10 @@
1313
[![Apache 2.0 licensed][apache-badge]][apache-license-url]
1414
[![Contributor Covenant][cc-badge]][cc-url]
1515
[![Made by Human][mbh-badge]][cc-url]
16-
[![codecov](https://codecov.io/gh/EngosSoftware/decimus/branch/main/graph/badge.svg)](https://codecov.io/gh/EngosSoftware/decimus)
1716

1817
[crates-badge]: https://img.shields.io/crates/v/decimus.svg
18+
[coverage-badge]: https://codecov.io/gh/EngosSoftware/decimus/branch/main/graph/badge.svg
19+
[coverage-url]: https://codecov.io/gh/EngosSoftware/decimus
1920
[crates-url]: https://crates.io/crates/decimus
2021
[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg
2122
[mit-url]: https://opensource.org/licenses/MIT
@@ -31,7 +32,6 @@
3132
[build-badge-windows]: https://github.com/EngosSoftware/decimus/actions/workflows/build-windows.yml/badge.svg
3233
[build-badge-macos]: https://github.com/EngosSoftware/decimus/actions/workflows/build-macos.yml/badge.svg
3334
[build-badge-macos-arm64]: https://github.com/EngosSoftware/decimus/actions/workflows/build-macos-arm64.yml/badge.svg
34-
[coverage-badge]: https://img.shields.io/badge/Code%20coverage-68%25-green.svg
3535
[cc-badge]: https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg
3636
[cc-url]: https://github.com/EngosSoftware/decimus/blob/main/CODE_OF_CONDUCT.md
3737
[mbh-badge]: https://img.shields.io/badge/Made_by-HUMAN-d35400.svg

0 commit comments

Comments
 (0)