File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,17 @@ jobs:
4848 with :
4949 toolchain : stable
5050 - uses : Swatinem/rust-cache@v2
51-
52- - name : Build Everything
53- run : cargo build --all-targets
54- - name : Run tests
55- run : cargo test --all-targets --verbose
51+ - name : Install cargo-llvm-cov
52+ uses : taiki-e/install-action@cargo-llvm-cov
53+ - name : Run tests and generate code coverage
54+ run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
55+ - name : Upload coverage to Codecov
56+ uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5
57+ with :
58+ files : lcov.info
59+ fail_ci_if_error : true
60+ env :
61+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
5662 # Ensure that no files (most likely the Cargo.lock file) have changed
5763 - name : Unstaged Changes
5864 run : git diff --exit-code
You can’t perform that action at this time.
0 commit comments