From 260e2a2184a0b220ec1d5f5a951989a496904a45 Mon Sep 17 00:00:00 2001 From: noandrea Date: Wed, 5 Feb 2025 19:14:19 +0100 Subject: [PATCH] format before build --- .github/workflows/quality.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 8af22f3..2c9d787 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -9,8 +9,8 @@ permissions: pull-requests: write jobs: - build: - name: Build + format: + name: Check Code Formatting runs-on: ubuntu-latest steps: - name: Checkout repository @@ -18,11 +18,11 @@ jobs: - name: Set up Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: - rustflags: "-A warnings" - - name: Build - run: cargo build --release - format: - name: Check Code Formatting + components: rustfmt + - name: Check formatting + run: cargo fmt -- --check + build: + name: Build runs-on: ubuntu-latest steps: - name: Checkout repository @@ -30,9 +30,9 @@ jobs: - name: Set up Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: - components: rustfmt - - name: Check formatting - run: cargo fmt -- --check + rustflags: "-A warnings" + - name: Build + run: cargo build --release test: name: Test and coverage runs-on: ubuntu-latest