From d121f8a192f731209e8ac4e1198e2006bb2e06bf Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Thu, 2 Mar 2023 05:08:16 +0900 Subject: [PATCH] rustfmt and clippy on CI --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0babf8e..3b3c2e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,3 +140,25 @@ jobs: with: command: doc args: --verbose ${{ matrix.features }} --manifest-path=generator/Cargo.toml + lint: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: rustfmt + override: true + - name: rustfmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + - name: clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: ${{ matrix.default }} -- -Dwarnings