File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Rust CI
2+
3+ on :
4+ push :
5+ branches : ['**']
6+ pull_request :
7+ branches : ['**']
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ build_and_test :
14+ name : Build and Test
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout Repository
18+ uses : actions/checkout@v4
19+
20+ - name : Set Up Rust
21+ uses : actions-rs/toolchain@v1
22+ with :
23+ toolchain : stable
24+ components : clippy, rustfmt
25+ override : true
26+
27+ - name : Cache Cargo Dependencies
28+ uses : Swatinem/rust-cache@v2
29+
30+ - name : Check Code Formatting
31+ run : cargo fmt --all -- --check
32+
33+ - name : Run Clippy (Linter)
34+ run : cargo clippy --all-targets --all-features -- -D warnings
35+
36+ - name : Build Project
37+ run : cargo build --verbose
38+
39+ - name : Run Tests
40+ run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments