Index: .github/workflows/rust-clippy.yml ================================================================== --- .github/workflows/rust-clippy.yml +++ .github/workflows/rust-clippy.yml @@ -1,29 +1,22 @@ -name: rust-clippy analyze - +name: rust-ci on: push -# Make sure CI fails on all warnings, including Clippy lints -env: - RUSTFLAGS: "-Dwarnings" - jobs: - rust-clippy-test: - name: Run rust-clippy analyzing + rust-ci-run: + name: Run rust-clippy analyzing and tests runs-on: ubuntu-latest permissions: contents: read - security-events: write steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - + # SETUP + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 + # TESTS - name: Run tests - run: cargo test --all-targets --all-features + run: cargo test --all-targets --all-features --release + # CLIPPY - name: Run rust-clippy - run: cargo clippy --all-targets --all-features + run: cargo clippy --all-targets --all-features -- -D warnings