-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates codecov.io GH action #853
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗺️ The |
||
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 }} | ||
Comment on lines
-42
to
-43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗺️ Removing this as #852 added |
||
with: | ||
files: codecov.json | ||
fail_ci_if_error: true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗺️ The GH Actions owned by the
actions-rs
organization are now archived and unmaintained.dtolnay/rust-toolchain
is its successor.