diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml new file mode 100644 index 0000000..1ebb244 --- /dev/null +++ b/.github/workflows/rust.yaml @@ -0,0 +1,16 @@ +on: [push, pull_request] +name: Rust check + +# Make sure CI fails on all warnings, including Clippy lints +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + clippy_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run Clippy + run: cargo clippy --all-targets --all-features + - name: Run Format + run: cargo fmt --all -- --check