diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a01b4f1a..82e4a207 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,23 +58,26 @@ jobs: - uses: taiki-e/install-action@cargo-hack - - name: Check Cargo.lock is up to date - run: | - if ! cargo metadata --format-version 1 --locked > /dev/null; then - echo "::error::Cargo.lock is out of date. Run cargo generate-lockfile or cargo build locally, then commit Cargo.lock." - exit 1 - fi - - name: Check formatting + if: ${{ !cancelled() }} run: cargo fmt --all -- --check - name: Check Clippy + if: ${{ !cancelled() }} run: cargo clippy --all-targets --features full --all -- -D warnings - name: Check features if: ${{ !cancelled() }} run: cargo hack check --package easytier --each-feature --exclude-features macos-ne --verbose + - name: Check Cargo.lock is up to date + if: ${{ !cancelled() }} + run: | + if ! cargo metadata --format-version 1 --locked > /dev/null; then + echo "::error::Cargo.lock is out of date. Run cargo generate-lockfile or cargo build locally, then commit Cargo.lock." + exit 1 + fi + pre-test: name: Build test runs-on: ubuntu-latest