File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Rust
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ types : [opened, synchronize, reopened, ready_for_review]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ lint :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Install Rust (stable) with components
18+ uses : dtolnay/rust-toolchain@stable
19+ with :
20+ components : clippy, rustfmt
21+ - name : rustfmt check
22+ run : cargo fmt --all -- --check
23+ - name : clippy (deny warnings)
24+ run : |
25+ cargo clippy --all-targets --all-features -- -D warnings
26+
27+ build :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@v4
31+ - name : Install Rust (stable) with components
32+ uses : dtolnay/rust-toolchain@stable
33+ - name : Cargo Build
34+ run : cargo build --verbose
35+ test :
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@v4
39+ - name : Install Rust (stable) with components
40+ uses : dtolnay/rust-toolchain@stable
41+ - name : Run tests
42+ run : cargo test --all-features --verbose
Original file line number Diff line number Diff line change 1+ target /
2+ Cargo.lock
You can’t perform that action at this time.
0 commit comments