From d3208303ba8c8e688f08980ee9ec7de3ade6fe0e Mon Sep 17 00:00:00 2001 From: Matthew Kaminski Date: Sun, 18 Aug 2024 16:06:46 -0400 Subject: [PATCH] Add formatting check and fail on clippy warnings --- .github/workflows/github-actions-demo.yml | 8 ++++++-- src/server/mod.rs | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 08155a3..f28d535 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -46,6 +46,10 @@ jobs: - name: Build the project run: perseus --wasm-opt-version version_118 deploy --verbose - name: Run clippy for server - run: RUSTFLAGS="--cfg=engine" cargo clippy --all + run: RUSTFLAGS="--cfg=engine" cargo clippy --all -- -D warnings + continue-on-error: true - name: Run clippy for frontend - run: RUSTFLAGS="--cfg=client" cargo clippy --all + run: RUSTFLAGS="--cfg=client" cargo clippy --all -- -D warnings + continue-on-error: true + - name: Check for formatting issues + run: cargo fmt --check diff --git a/src/server/mod.rs b/src/server/mod.rs index 9bebc39..6a664ab 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -1,2 +1 @@ pub mod routes; -