ci(lint): stop linting with nightly
This commit is contained in:
parent
462fcd7c30
commit
2bc8aa939f
3 changed files with 4 additions and 21 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -34,22 +34,11 @@ jobs:
|
|||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
|
||||
- name: Set up nightly Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: clippy, rustfmt
|
||||
|
||||
- name: Lint files
|
||||
run: |
|
||||
make lint
|
||||
make lint-web
|
||||
|
||||
- name: Lint files (Rust nightly)
|
||||
continue-on-error: true
|
||||
run: |
|
||||
make lint-nightly
|
||||
|
||||
sanitize:
|
||||
uses: ./.github/workflows/sanitize.yml
|
||||
|
||||
|
|
|
|||
12
Makefile
12
Makefile
|
|
@ -106,21 +106,15 @@ test-wasm:
|
|||
lint:
|
||||
cargo update --workspace --locked --quiet
|
||||
cargo check --workspace --all-targets
|
||||
cargo +nightly fmt --all --check
|
||||
cargo +stable clippy --workspace --all-targets -- -D warnings
|
||||
|
||||
lint-nightly:
|
||||
cargo update --workspace --locked --quiet
|
||||
cargo check --workspace --all-targets
|
||||
cargo +nightly fmt --all --check
|
||||
cargo +nightly clippy --workspace --all-targets -- -D warnings
|
||||
cargo fmt --all --check
|
||||
cargo clippy --workspace --all-targets -- -D warnings
|
||||
|
||||
lint-web:
|
||||
npm --prefix lib/binding_web ci
|
||||
npm --prefix lib/binding_web run lint
|
||||
|
||||
format:
|
||||
cargo +nightly fmt --all
|
||||
cargo fmt --all
|
||||
|
||||
changelog:
|
||||
@git-cliff --config .github/cliff.toml --prepend CHANGELOG.md --latest --github-token $(shell gh auth token)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use crate::{bail_on_err, Clippy};
|
|||
|
||||
pub fn run(args: &Clippy) -> Result<()> {
|
||||
let mut clippy_command = Command::new("cargo");
|
||||
clippy_command.arg("+nightly").arg("clippy");
|
||||
clippy_command.arg("clippy");
|
||||
|
||||
if let Some(package) = args.package.as_ref() {
|
||||
clippy_command.args(["--package", package]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue