File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ test :
11+ name : Rust CI
12+ runs-on : ${{ matrix.os }}
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, macos-latest, windows-latest]
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : Install Rust
22+ uses : dtolnay/rust-toolchain@stable
23+ with :
24+ components : clippy, rustfmt
25+
26+ - name : Cache cargo registry
27+ uses : actions/cache@v4
28+ with :
29+ path : |
30+ ~/.cargo/registry
31+ ~/.cargo/git
32+ target
33+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34+ restore-keys : ${{ runner.os }}-cargo-
35+
36+ - name : Run cargo fmt
37+ run : cargo fmt --all -- --check
38+
39+ - name : Run clippy
40+ run : cargo clippy --all-targets --all-features -- -D warnings
41+
42+ - name : Run Tests
43+ run : cargo test --all --verbose
You can’t perform that action at this time.
0 commit comments