diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e2a735..22acacb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,15 +11,19 @@ jobs: name: Rust project runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: clippy, rustfmt + + - name: Clippy + run: cargo clippy --workspace --all-features -- -D warnings + + - name: Rustfmt + run: cargo fmt --all -- --check + - name: Build run: cargo build --locked + - name: Test run: cargo test --locked - - name: Clippy - run: cargo clippy - - name: Rustfmt - run: cargo fmt --check