Skip to content

Commit

Permalink
fix: nexttest error #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth9890 committed Nov 7, 2024
1 parent 8b894b7 commit 66fb004
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,21 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@nightly
with:
profile: minimal
toolchain: stable
override: true
components: llvm-tools-preview
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2

- name: Install cargo-nextest
run: cargo install cargo-nextest

- name: Install cargo-nextest and cargo-llvm-cov
run: |
rustup toolchain install nightly
rustup component add llvm-tools-preview --toolchain nightly
cargo +nightly install cargo-llvm-cov
- name: Run tests with cargo-nextest
run: cargo nextest run --all --no-fail-fast --verbose
- name: Install latest nextest release
uses: taiki-e/install-action@ede617189e3c81af2b3a130eb76d0054785dfb5e # v2
with:
tool: nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@ede617189e3c81af2b3a130eb76d0054785dfb5e # v2
with:
tool: cargo-llvm-cov

- name: Generate coverage report
run: |
Expand All @@ -41,10 +35,7 @@ jobs:
cargo llvm-cov report --doctests --lcov --output-path lcov.info
- name: Upload to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
with:
files: ./lcov.info
flags: unittests
name: codecov-rust
fail_ci_if_error: true
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 66fb004

Please sign in to comment.