From 8a2416b4ef73fb1ddde4992bb6c996cfbf5e0e58 Mon Sep 17 00:00:00 2001 From: Hendrik Eeckhaut Date: Wed, 29 May 2024 14:17:04 +0200 Subject: [PATCH] test --- .github/workflows/rust.yml | 41 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b710ea4d..850d50ab 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,26 +11,6 @@ env: CARGO_TERM_COLOR: always jobs: - rustfmt_and_clippy: - name: Rustfmt and Clippy - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Install Rust Nightly with rustfmt and clippy - uses: dtolnay/rust-toolchain@stable - with: - toolchain: nightly - components: rustfmt, clippy - - - uses: Swatinem/rust-cache@v2.7.3 - - - name: "Check formatting" - run: cargo +nightly fmt --check --all - - - name: Run Clippy - run: cargo clippy --all-targets --all-features build_and_test: name: "Build and Test" @@ -62,6 +42,27 @@ jobs: # RUSTDOCFLAGS: -D warnings run: cargo doc --no-deps --workspace --lib --document-private-items --examples + rustfmt_and_clippy: + name: Rustfmt and Clippy + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Rust Nightly with rustfmt and clippy + uses: dtolnay/rust-toolchain@stable + with: + toolchain: nightly + components: rustfmt, clippy + + - uses: Swatinem/rust-cache@v2.7.3 + + - name: "Check formatting" + run: cargo +nightly fmt --check --all + + - name: Run Clippy + run: cargo clippy --all-targets --all-features + miri: if: ( ! github.event.pull_request.draft ) name: "Test with Miri"