From f1deebc0f11c5f351204eaccb03eaaff9fd15f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Tue, 22 Nov 2022 09:28:57 +0100 Subject: [PATCH] ci: check formatting first, and add all targets to coconut clippy step --- .github/workflows/build.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0777368574..ad1f3d4d54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,12 @@ jobs: override: true components: rustfmt, clippy + - name: Check formatting + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + - name: Build all binaries uses: actions-rs/cargo@v1 with: @@ -48,12 +54,6 @@ jobs: command: test args: --workspace --all-features -- --ignored - - name: Check formatting - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - uses: actions-rs/clippy-check@v1 name: Clippy checks with: @@ -66,6 +66,8 @@ jobs: command: clippy args: --workspace -- -D warnings + # COCONUT stuff + - name: Build all binaries with coconut enabled uses: actions-rs/cargo@v1 with: @@ -82,4 +84,4 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --features=coconut -- -D warnings + args: --all-targets --features=coconut -- -D warnings