Skip to content

Commit

Permalink
change code coverage from grcov to cargo-llvm-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 authored and djc committed Aug 7, 2023
1 parent 69d359d commit 95b826e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 103 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: codecov
on:
push:
branches: [main, 0.4.x]
pull_request:
jobs:
# Run code coverage using cargo-llvm-cov then upload to codecov.io
job_code_coverage:
name: llvm-cov
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: lcov.info
fail_ci_if_error: true
103 changes: 0 additions & 103 deletions .github/workflows/grcov.yml

This file was deleted.

0 comments on commit 95b826e

Please sign in to comment.