File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1212 CARGO_TERM_COLOR : always
1313 RUSTFLAGS : -D warnings
1414 REGISTRY : ghcr.io
15+ RUST_VERSION_COV : nightly-2024-06-05
1516
1617jobs :
1718 cancel-previous-runs :
2223 with :
2324 access_token : ${{ github.token }}
2425
26+ publish-codecov :
27+ name : Check code coverage (branch)
28+ runs-on : ubuntu-latest
29+ permissions : # Write access to push changes to pages
30+ contents : write
31+ steps :
32+ - uses : actions/checkout@v3
33+ - name : Install latest Rust
34+ uses : dtolnay/rust-toolchain@master
35+ with :
36+ toolchain : ${{ env.RUST_VERSION_COV }}
37+
38+ - name : Install cargo-llvm-codecov
39+ uses : taiki-e/install-action@cargo-llvm-cov
40+
41+ - name : Code coverage report
42+ run : cargo +${{ env.RUST_VERSION_COV }} llvm-cov --all-features --lcov --branch --output-path lcov.info
43+
44+ - name : Setup LCOV
45+ uses : hrishikesh-kadam/setup-lcov@v1
46+
47+ - name : Report code coverage
48+ uses : zgosalvez/github-actions-report-lcov@v3
49+ with :
50+ coverage-files : lcov.info
51+ minimum-coverage : 0 # for now we are not enforcing any minimum coverage.
52+ artifact-name : code-coverage-report
53+ github-token : ${{ secrets.REPO_TOKEN }}
54+ update-comment : true
55+
2556 lint-toml-files :
2657 needs : cancel-previous-runs
2758 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments