diff --git a/.github/workflows/cargo-clippy.yml b/.github/workflows/cargo-clippy.yml new file mode 100644 index 0000000..7f27b7d --- /dev/null +++ b/.github/workflows/cargo-clippy.yml @@ -0,0 +1,23 @@ +name: Cargo Clippy + +on: + pull_request: + branches: + - main + +jobs: + clippy: + name: Run Clippy + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Run Cargo Clippy + run: cargo clippy --all-targets --all-features -- -D warnings