File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Code Coverage
2+
3+ on :
4+ push :
5+ branches : [ "main", "master" ]
6+ pull_request :
7+ branches : [ "main", "master" ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ coverage :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : Install Rust
19+ uses : dtolnay/rust-toolchain@stable
20+ with :
21+ toolchain : stable
22+ components : llvm-tools-preview
23+
24+ - name : Install cargo-llvm-cov
25+ uses : taiki-e/install-action@cargo-llvm-cov
26+
27+ - name : Generate code coverage
28+ run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
29+
30+ - name : Upload coverage to Codecov
31+ uses : codecov/codecov-action@v5
32+ with :
33+ token : ${{ secrets.CODECOV_TOKEN }}
34+ slug : atsyplenkov/paperdown
35+ files : lcov.info
Original file line number Diff line number Diff line change 6565 RUSTDOCFLAGS : -D warnings
6666 run : cargo doc --no-deps --document-private-items --all-features --examples
6767
68- coverage :
69- name : Coverage
70- runs-on : ubuntu-latest
71- steps :
72- - name : Checkout repository
73- uses : actions/checkout@v4
74- - name : Install Rust toolchain
75- uses : dtolnay/rust-toolchain@stable
76- - name : Install cargo-llvm-cov
77- run : cargo install cargo-llvm-cov
78- - name : Generate coverage report
79- run : cargo llvm-cov --all-targets --lcov --output-path lcov.info
80- - name : Upload to Codecov
81- uses : codecov/codecov-action@v4
82- with :
83- files : lcov.info
84- fail_ci_if_error : true
85- token : ${{ secrets.CODECOV_TOKEN }}
86-
8768 publish-dry-run :
8869 name : Publish dry run
8970 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments