File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : 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
You can’t perform that action at this time.
0 commit comments