From 2bbcc2f9d1fd903bb10858ac360071309df8ea44 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Wed, 4 Sep 2024 07:52:50 +0200 Subject: [PATCH] http: Make the rust github workflow throw errors instead of warnings Instead of failing silently, warnings should be treated as errors and be fixed before merging a patch. --- .github/workflows/check-radicle-httpd.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-radicle-httpd.yml b/.github/workflows/check-radicle-httpd.yml index c5b794156..2119cc15e 100644 --- a/.github/workflows/check-radicle-httpd.yml +++ b/.github/workflows/check-radicle-httpd.yml @@ -16,6 +16,8 @@ jobs: workspaces: radicle-httpd -> target - name: Build run: cargo build --all-features + env: + RUSTFLAGS: -D warnings - name: Run tests run: cargo test --all-features docs: @@ -31,7 +33,9 @@ jobs: with: workspaces: radicle-httpd -> target - name: Docs - run: cargo doc --all --all-features + run: cargo doc --all-features + env: + RUSTDOCFLAGS: -D warnings lint: name: Lint runs-on: ubuntu-latest @@ -45,6 +49,8 @@ jobs: with: workspaces: radicle-httpd -> target - name: Run clippy - run: cargo clippy --all --tests + run: cargo clippy --tests + env: + RUSTFLAGS: -D warnings - name: Check formatting - run: cargo fmt --all --check + run: cargo fmt -- --check