Skip to content

Commit c62d904

Browse files
ZohebShaikhtpoliaw
authored andcommitted
Push to codecov
1 parent c9afd9b commit c62d904

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,20 @@ jobs:
6565
toolchain: stable
6666
- uses: Swatinem/rust-cache@v2
6767

68-
- name: Build Everything
69-
run: cargo build --all-targets
70-
- name: Run tests
71-
run: cargo test --all-targets --verbose
68+
- name: Install cargo-llvm-cov
69+
uses: taiki-e/install-action@cargo-llvm-cov
70+
71+
- name: Run tests and generate code coverage
72+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
73+
74+
- name: Upload coverage to Codecov
75+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5
76+
with:
77+
files: lcov.info
78+
fail_ci_if_error: true
79+
env:
80+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
81+
7282
# Ensure that no files (most likely the Cargo.lock file) have changed
7383
- name: Unstaged Changes
7484
run: git diff --exit-code

0 commit comments

Comments
 (0)