File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
template/.github/workflows Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 6161 env :
6262 RUSTDOCFLAGS : -D warnings
6363 run : cargo doc --no-deps --document-private-items --all-features --workspace --examples
64+
65+ coverage :
66+ name : Coverage
67+ runs-on : ubuntu-latest
68+ steps :
69+ - name : Checkout repository
70+ uses : actions/checkout@v4
71+ - name : Install Rust toolchain
72+ uses : dtolnay/rust-toolchain@stable
73+ - uses : Swatinem/rust-cache@v2
74+ - name : Install cargo-llvm-cov
75+ uses : taiki-e/install-action@cargo-llvm-cov
76+ - name : Generate code coverage
77+ run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
78+ - name : Upload coverage to Codecov
79+ uses : codecov/codecov-action@v3
80+ with :
81+ token : ${{ secrets.CODECOV_TOKEN }}
82+ files : lcov.info
83+ fail_ci_if_error : true
6484{% endraw %}
85+
You can’t perform that action at this time.
0 commit comments