From 350069cbccb5314e3138f50e89271fa508041939 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 21 Nov 2024 01:02:30 +0000 Subject: [PATCH 1/2] ci: Check typos in quick-test job --- .github/workflows/tests.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e33590a1..aabb55ce 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -287,16 +289,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: [ From e3f08da69534f94e12cd03508245fad295493611 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 21 Nov 2024 01:04:15 +0000 Subject: [PATCH 2/2] ci: Test install from main test job Should use somewhat fewer workers and jobs --- .github/workflows/tests.yml | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aabb55ce..84aa6fe9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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] @@ -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' @@ -297,10 +277,8 @@ jobs: minimal-versions, maximal-versions, tests-from-tarball, - install, pr-mutants, cargo-mutants, - typos, ] runs-on: ubuntu-latest if: always()