From 31c61390e60ef7a867f1df4386deb7e658772bdc Mon Sep 17 00:00:00 2001 From: akagiyuu Date: Wed, 6 May 2026 20:25:31 +0700 Subject: [PATCH] feat(ci): add format and clippy check --- .github/workflows/check.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/check.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..85fcc5a --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,21 @@ +on: + workflow_dispatch: + pull_request: + +permissions: + contents: read + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: clippy, rustfmt + - uses: Swatinem/rust-cache@v2 + - name: Check clippy + run: cargo clippy --workspace -- -D warnings + - name: Check rustfmt + run: cargo fmt --all -- --check