Skip to content

Commit

Permalink
Need nextest to run tests from package
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Oct 13, 2024
1 parent 71e0b62 commit 60f94f2
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,25 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- run: cargo package --no-verify
- run: |
cd target/package
ls -l
tar xvf cargo-mutants*.crate
cd cargo-mutants-*.*.[0-9]
cargo test
- name: Upload package artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: target/package
name: cargo-mutants-package
path: |
target/package
- name: Unpack package
run: |
cd target/package
ls -l
tar xvf cargo-mutants*.crate
- name: Install nextest using install-action
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Run tests from package
run: |
cd target/package/cargo-mutants-*.*.[0-9]
cargo test
# Install from a checkout of the source, to find broken dependencies etc.
# We run this on various versions because some dependencies might have changed
Expand Down

0 comments on commit 60f94f2

Please sign in to comment.