Skip to content

Commit 11070cf

Browse files
Relax Clippy warnings for educational examples
1 parent 53ac226 commit 11070cf

1 file changed

Lines changed: 22 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
11
name: Rust CI
22

3-
on:
3+
on:
44
push:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
88

9-
jobs:
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
1013
build:
1114
runs-on: ubuntu-latest
15+
1216
steps:
13-
- uses: actions/checkout@v4
14-
- name: Install Rust toolchain
15-
uses: dtolnay/rust-toolchain-action@v1
16-
with:
17-
toolchain: stable
18-
- name: Install components
19-
run: rustup component add clippy rustfmt || true
20-
- name: Check formatting
21-
run: cargo fmt -- --check
22-
- name: Run clippy
23-
run: cargo clippy -- -D warnings
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Install Rust
21+
uses: dtolnay/rust-toolchain@stable
22+
23+
- name: Build
24+
run: cargo build --verbose
25+
2426
- name: Run tests
25-
run: cargo test --all
27+
run: cargo test --verbose
28+
29+
- name: Check formatting
30+
run: cargo fmt --all -- --check
31+
32+
- name: Run Clippy
33+
run: cargo clippy --all-targets

0 commit comments

Comments
 (0)