Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ci-min-max
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 22, 2024
2 parents e3b3167 + 6daabb8 commit 28e1061
Showing 1 changed file with 7 additions and 44 deletions.
51 changes: 7 additions & 44 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
- name: Check clippy
# TODO: -- -D warnings
run: cargo clippy --all-targets --all-features
- name: Check typos
uses: crate-ci/typos@master
- name: Build release binary
run: cargo build --release
- name: Upload binary artifact
Expand Down Expand Up @@ -124,6 +126,10 @@ jobs:
- name: Test on minimal versions
if: matrix.version == 'nightly'
run: cargo test
- name: Install locked
run: cargo install --path . --locked
- name: Install unlocked
run: cargo install --path .

tests-from-tarball:
needs: [quick-test]
Expand Down Expand Up @@ -156,30 +162,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 Expand Up @@ -260,27 +242,8 @@ jobs:
name: mutants-${{matrix.test_tool}}-shard${{matrix.shard}}.out
path: mutants.out

typos:
name: Spell check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check spelling
uses: crate-ci/typos@master

overall-result:
needs:
[
quick-test,
test,
tests-from-tarball,
install,
pr-mutants,
cargo-mutants,
typos,
]
needs: [quick-test, test, tests-from-tarball, pr-mutants, cargo-mutants]
runs-on: ubuntu-latest
if: always()
steps:
Expand Down

0 comments on commit 28e1061

Please sign in to comment.