mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-01-14 11:03:15 +00:00
Add workflow for cargo-clippy
This commit is contained in:
parent
fcac28eed0
commit
8d9f0f1146
@ -1,19 +1,21 @@
|
|||||||
name: cargo-bloat
|
name: cargo-clippy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bloat:
|
clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
- uses: orf/cargo-bloat-action@v1
|
components: clippy
|
||||||
|
- uses: actions-rs/clippy-check@v1
|
||||||
with:
|
with:
|
||||||
|
args: --workspace --all-targets --all-features -- -D clippy::all
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2
.github/workflows/cargo-test.yml
vendored
2
.github/workflows/cargo-test.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fmt:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user