File tree Expand file tree Collapse file tree 3 files changed +89
-0
lines changed
Expand file tree Collapse file tree 3 files changed +89
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Clippy
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ clippy :
14+ name : Lint with Clippy
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v3
18+
19+ - name : Install Rust
20+ uses : dtolnay/rust-toolchain@stable
21+
22+ - name : Cache dependencies
23+ uses : actions/cache@v3
24+ with :
25+ path : |
26+ ~/.cargo/registry
27+ ~/.cargo/git
28+ target
29+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
30+ restore-keys : ${{ runner.os }}-cargo-
31+
32+ - name : Run clippy
33+ run : cargo clippy --all-targets --all-features -- -D warnings
Original file line number Diff line number Diff line change 1+ name : Format
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ fmt :
14+ name : Code Formatting
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Install Rust
20+ uses : dtolnay/rust-toolchain@stable
21+
22+ - name : Check formatting
23+ run : cargo fmt --all -- --check
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ test :
14+ name : Run Tests
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v3
18+
19+ - name : Install Rust
20+ uses : dtolnay/rust-toolchain@stable
21+
22+ - name : Cache dependencies
23+ uses : actions/cache@v3
24+ with :
25+ path : |
26+ ~/.cargo/registry
27+ ~/.cargo/git
28+ target
29+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
30+ restore-keys : ${{ runner.os }}-cargo-
31+
32+ - name : Run tests
33+ run : cargo test --all-features
You can’t perform that action at this time.
0 commit comments