Skip to content

Commit

Permalink
ci: Fewer jobs (#453)
Browse files Browse the repository at this point in the history
Merge typos and install tests into other jobs
  • Loading branch information
sourcefrog authored Nov 22, 2024
2 parents c8d09ab + 942cc8d commit 6daabb8
Showing 1 changed file with 6 additions and 36 deletions.
42 changes: 6 additions & 36 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 @@ -115,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 @@ -183,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 Expand Up @@ -287,16 +269,6 @@ 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:
[
Expand All @@ -305,10 +277,8 @@ jobs:
minimal-versions,
maximal-versions,
tests-from-tarball,
install,
pr-mutants,
cargo-mutants,
typos,
]
runs-on: ubuntu-latest
if: always()
Expand Down

0 comments on commit 6daabb8

Please sign in to comment.