We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adff244 commit cb22a10Copy full SHA for cb22a10
1 file changed
.github/workflows/build.yml
@@ -5,6 +5,7 @@ on:
5
push:
6
branches:
7
- main
8
+ - julio/codecov
9
10
jobs:
11
build:
@@ -30,3 +31,21 @@ jobs:
30
31
uses: qard/heaviest-objects-in-the-universe@v1
32
with:
33
github-token: ${{ secrets.GITHUB_TOKEN }}
34
+ coverage:
35
+ runs-on: ubuntu-latest
36
+ env:
37
+ CARGO_TERM_COLOR: always
38
+ steps:
39
+ - uses: actions/checkout@v4
40
+ - name: Install Rust
41
+ run: rustup update stable
42
+ - name: Install cargo-llvm-cov
43
+ uses: taiki-e/install-action@cargo-llvm-cov
44
+ - name: Generate code coverage
45
+ run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
46
+ - name: Upload coverage to Codecov
47
+ uses: codecov/codecov-action@v3
48
+ with:
49
+ token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
50
+ files: lcov.info
51
+ fail_ci_if_error: true
0 commit comments