diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d2ea9ea2..04fe14df 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,18 +48,18 @@ jobs: rustc --version - name: Build run: cargo build --all-targets - - uses: taiki-e/install-action@v2 - name: Install nextest using install-action - with: - tool: nextest - - name: Test - run: cargo test --workspace - name: Check rustfmt run: cargo fmt --all --check - name: Check clippy run: cargo clippy --all-targets --all-features -- -D warnings - name: Check typos uses: crate-ci/typos@master + - uses: taiki-e/install-action@v2 + name: Install nextest using install-action + with: + tool: nextest + - name: Test + run: cargo test --workspace - name: Build release binary run: cargo build --release - name: Upload binary artifact @@ -87,16 +87,6 @@ jobs: cargo --version rustc --version - uses: Swatinem/rust-cache@v2 - - name: rustfmt - run: cargo fmt --all -- --check - - uses: taiki-e/install-action@v2 - name: Install nextest using install-action - with: - tool: nextest - - name: Build - run: cargo build --all-targets - - name: Test - run: cargo test --workspace - name: Check rustfmt run: cargo fmt --all --check - name: Check clippy @@ -104,6 +94,14 @@ jobs: # Clippy checks can vary between versions in a way that makes it a bit # fiddly to satisfy them all, so only insist that they pass on stable. run: cargo clippy --all-targets --all-features -- -D warnings + - name: Build + run: cargo build --all-targets + - uses: taiki-e/install-action@v2 + name: Install nextest using install-action + with: + tool: nextest + - name: Test + run: cargo test --workspace - run: cargo update - name: Test after cargo update run: cargo test --workspace