mirror of
https://github.com/tonarino/innernet.git
synced 2025-02-09 13:47:14 +02:00
CI: use stable clippy
Using nightly one leads to having to resolve lints more frequently than rust releases, which is getting inconvenient. It also leads to a small compatibility issue with stable clippy: if we need to #[allow] a lint that is only present in nightly clippy, then stable clippy complains about unknown ling in the `allow`.
This commit is contained in:
parent
eac6071d7a
commit
00c2b3c6a1
15
.github/workflows/rust.yml
vendored
15
.github/workflows/rust.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
|||||||
command: test
|
command: test
|
||||||
args: --features v6-test --verbose
|
args: --features v6-test --verbose
|
||||||
|
|
||||||
fmt-and-clippy:
|
fmt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -56,12 +56,23 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
components: rustfmt, clippy
|
components: rustfmt
|
||||||
- name: Rustfmt
|
- name: Rustfmt
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --all -- --check
|
args: --all -- --check
|
||||||
|
|
||||||
|
clippy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
components: clippy
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user