zoxide/.github/workflows/cargo-clippy.yml

22 lines
486 B
YAML
Raw Normal View History

2020-10-01 20:23:00 +00:00
name: cargo-clippy
2020-10-01 19:55:10 +00:00
on:
push:
pull_request:
jobs:
2020-10-01 20:23:00 +00:00
clippy:
2020-10-01 19:55:10 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
2020-10-01 20:23:00 +00:00
toolchain: nightly
2020-10-01 19:55:10 +00:00
override: true
2020-10-01 20:23:00 +00:00
components: clippy
- uses: actions-rs/clippy-check@v1
2020-10-01 19:55:10 +00:00
with:
2020-10-01 20:44:48 +00:00
args: --workspace --all-targets --all-features -- -D warnings -D clippy::all
2020-10-01 19:55:10 +00:00
token: ${{ secrets.GITHUB_TOKEN }}