Skip to content

Commit f194d2d

Browse files
committed
ci: enhance linting workflow to test both stable and nightly toolchains
- Add matrix strategy to test with both stable and nightly Rust toolchains - Remove separate build step and use cargo run directly for consistency - Enable parallel execution of linting tests across toolchains - Ensure CI matches local development workflow (./scripts/lint.sh) - Provide comprehensive coverage for toolchain-specific compatibility issues
1 parent 9872577 commit f194d2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/linting.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
linting:
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 10
14+
strategy:
15+
matrix:
16+
toolchain: [stable, nightly]
1417

1518
steps:
1619
- name: Update
@@ -27,11 +30,8 @@ jobs:
2730
- name: Setup Rust toolchain
2831
uses: dtolnay/rust-toolchain@stable
2932
with:
30-
toolchain: stable
33+
toolchain: ${{ matrix.toolchain }}
3134
components: clippy, rustfmt
3235

33-
- name: Build Rust linter
34-
run: cargo build --release --bin linter
35-
3636
- name: Run all linters
37-
run: ./target/release/linter all
37+
run: cargo run --bin linter all

0 commit comments

Comments
 (0)