We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e092fd4 commit 74a5fd2Copy full SHA for 74a5fd2
.github/workflows/ci.yml
@@ -82,3 +82,22 @@ jobs:
82
with:
83
command: clippy
84
args: -- -D warnings
85
+
86
+ coverage:
87
+ runs-on: ubuntu-latest
88
+ env:
89
+ CARGO_TERM_COLOR: always
90
+ steps:
91
+ - uses: actions/checkout@v4
92
+ - name: Install Rust
93
+ run: rustup update stable
94
+ - name: Install cargo-llvm-cov
95
+ uses: taiki-e/install-action@cargo-llvm-cov
96
+ - name: Generate code coverage
97
+ run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
98
+ - name: Upload coverage to Codecov
99
+ uses: codecov/codecov-action@v3
100
+ with:
101
+ token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
102
+ files: lcov.info
103
+ fail_ci_if_error: true
0 commit comments