From 6da87190e26da4b1dd543e66d7013be36fe1fb4f Mon Sep 17 00:00:00 2001 From: TehPers Date: Sun, 18 Aug 2024 23:29:27 -0700 Subject: [PATCH] Update CI to catch doc warnings, fix other issues --- .github/workflows/ci.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index abbfea6..5a2e96b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,6 +7,8 @@ on: env: CARGO_TERM_COLOR: always + RUSTFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings jobs: format: @@ -34,7 +36,9 @@ jobs: - name: Setup toolchain uses: dtolnay/rust-toolchain@clippy - name: Run clippy - run: cargo clippy --tests -- -D warnings + run: cargo clippy --tests --all-features + - name: Check docs for errors + run: cargo doc --no-deps --all-features ${{matrix.flags}} test: name: Test (${{ matrix.name }}) @@ -62,4 +66,4 @@ jobs: toolchain: nightly components: rustfmt - name: Run tests - run: cargo test --verbose + run: cargo test --verbose ${{matrix.flags}}