Skip to content

Commit

Permalink
Updates codecov.io GH action (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton authored Nov 8, 2024
1 parent b82df6e commit f36249e
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,21 @@ jobs:
os: [ ubuntu-latest ]

steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
# We need this component to generate source coverage in stable
components: llvm-tools-preview
override: true
# Wrapper for running coverage with -C instrument-coverage
- name: Cargo Install Coverage Wrapper
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-llvm-cov
- name: Cargo Test w/ Coverage
uses: actions-rs/cargo@v1
with:
command: llvm-cov
args: --verbose --workspace --all-features --no-fail-fast --codecov --output-path codecov.json
- name: Codecov Upload
- name: Install `cargo-llvm-cov`
run: cargo install cargo-llvm-cov
- name: Cargo test w/code coverage
run: cargo llvm-cov --verbose --workspace --all-features --no-fail-fast --codecov --output-path codecov.json
- name: Codecov upload
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: codecov.json
fail_ci_if_error: true
Expand Down

0 comments on commit f36249e

Please sign in to comment.