File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - " master"
8+
9+ jobs :
10+ format :
11+ name : Format code
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ - uses : dtolnay/rust-toolchain@stable
16+ with :
17+ components : rustfmt
18+ - run : cargo fmt -- --check
19+
20+ clippy :
21+ name : Clippy check
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v4
25+ - uses : dtolnay/rust-toolchain@stable
26+ with :
27+ components : clippy
28+ - uses : Swatinem/rust-cache@v2
29+ - run : cargo clippy --all-targets --all-features -- --deny warnings
30+
31+ test :
32+ name : Test code
33+ runs-on : ubuntu-latest
34+ strategy :
35+ matrix :
36+ rust_version : [stable, beta, nightly]
37+ fail-fast : false
38+ steps :
39+ - uses : actions/checkout@v3
40+ - uses : dtolnay/rust-toolchain@master
41+ with :
42+ toolchain : ${{matrix.rust_version}}
43+ - uses : Swatinem/rust-cache@v2
44+ with :
45+ key : ${{matrix.rust_version}}
46+ - run : cargo update
47+ - run : cargo test --all-features
You can’t perform that action at this time.
0 commit comments