Skip to content

Commit 85a9c0d

Browse files
committed
Add codecov to actions
1 parent c5f5bda commit 85a9c0d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/cargo.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,19 @@ jobs:
3131
- name: Run cargo fmt
3232
run: cargo fmt --check
3333
- name: Run tests
34-
run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info nextest
34+
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json nextest
3535
- name: Show coverage report
3636
run: cargo llvm-cov report
3737
- name: Check link
3838
uses: actions-rs/clippy-check@v1
3939
with:
4040
token: ${{ secrets.GITHUB_TOKEN }}
4141
args: --all-targets --all-features -- -D warnings
42+
- name: Upload coverage to Codecov
43+
uses: codecov/codecov-action@v3
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
46+
files: codecov.json
47+
fail_ci_if_error: true
4248
- name: Run cargo check
4349
run: cargo check

0 commit comments

Comments
 (0)