Skip to content

Commit

Permalink
ci: Test install from main test job
Browse files Browse the repository at this point in the history
Should use somewhat fewer workers and jobs
  • Loading branch information
sourcefrog authored Nov 21, 2024
1 parent 350069c commit 632792b
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ jobs:
- name: Check clippy
# TODO: Deny warnings
run: cargo clippy --all-targets --all-features
- name: Install locked
run: cargo install --locked --path .
- name: Install unlocked
run: cargo install --path .

minimal-versions:
needs: [quick-test]
Expand Down Expand Up @@ -185,30 +189,6 @@ jobs:
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
# their MSRV, and on every platform because there are platform-specific
# dependencies.
install:
needs: [quick-test]
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
version: [stable, nightly, "1.74"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
- name: Show Cargo and rustc version
run: |
cargo --version
rustc --version
- uses: Swatinem/rust-cache@v2
- run: cargo install --locked --path .
- run: cargo install --path .

pr-mutants:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit 632792b

Please sign in to comment.