mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
ci: separate nightly lints to separate job
This commit is contained in:
parent
998fb34d15
commit
1fdd1d250c
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -32,6 +32,7 @@ jobs:
|
|||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
|
||||
- name: Set up nightly Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
|
@ -44,6 +45,11 @@ jobs:
|
|||
make lint
|
||||
make lint-web
|
||||
|
||||
- name: Lint files (Rust nightly)
|
||||
continue-on-error: true
|
||||
run: |
|
||||
make lint-nightly
|
||||
|
||||
sanitize:
|
||||
uses: ./.github/workflows/sanitize.yml
|
||||
|
||||
|
|
|
|||
6
Makefile
6
Makefile
|
|
@ -104,6 +104,12 @@ test-wasm:
|
|||
cargo xtask 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue