diff options
Diffstat (limited to '.github/workflows/lint.yaml')
| -rw-r--r-- | .github/workflows/lint.yaml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..550e406 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,42 @@ +name: lint project + +on: + workflow_call: + workflow_dispatch: + +permissions: + checks: write + +jobs: + cargo-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: run cargo check + uses: actions-rs/cargo@v1 + with: + command: check + + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy + + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features |
