From c176f1d6647f620625aaae8686a164909c2cf3a8 Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Wed, 26 Nov 2025 16:36:44 +0100 Subject: [PATCH] Add lint and format check GHA workflow --- .github/workflows/lint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..349fb27 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Lint and format check + +on: [ pull_request ] + +permissions: + contents: read + +env: + RUSTFLAGS: "-Dwarnings" # treat warnings as errors + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository. + uses: actions/checkout@v6 + + - name: Run Clippy. + run: cargo clippy --all-targets --all-features + + - name: Run fmt check. + run: cargo fmt --all -- --check