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