Skip to content

Run rust workflows on commits to main #2

Run rust workflows on commits to main

Run rust workflows on commits to main #2

name: Rust Clippy Check
'on':
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- name: Run clippy
run: cargo clippy -- -D warnings