name: Run Clippy on: workflow_dispatch: push: branches: - main pull_request: jobs: run-clippy: runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v2 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - name: Run cargo clippy uses: actions-rs/cargo@v1 with: command: clippy