Skip to content

Commit 976161a

Browse files
committed
Add cargo-llvm-cov to CI workflow
Move installation before generating code coverage and update Codecov token secret
1 parent 6d54353 commit 976161a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
with:
3535
components: clippy, llvm-tools-preview
3636

37+
- name: Install cargo-llvm-cov
38+
uses: taiki-e/install-action@cargo-llvm-cov
39+
3740
- name: Using Rust cache
3841
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
3942
with:
@@ -44,16 +47,13 @@ jobs:
4447
- name: Clippy
4548
run: cargo clippy --workspace --all-targets -- -D warnings
4649

47-
- name: Install cargo-llvm-cov
48-
uses: taiki-e/install-action@cargo-llvm-cov
49-
5050
- name: Generate code coverage
5151
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
5252

5353
- name: Upload coverage to Codecov
5454
uses: codecov/codecov-action@v5
5555
with:
56-
token: ${{ secrets.CODECOV_TOKEN }}
56+
token: ${{ secrets.CODECOV_SECRET }}
5757
files: lcov.info
5858
fail_ci_if_error: true
5959
slug: zharinov/plotnik

0 commit comments

Comments
 (0)