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+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ check :
14+ name : Check
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : dtolnay/rust-toolchain@stable
19+ - uses : Swatinem/rust-cache@v2
20+ - run : cargo check
21+
22+ test :
23+ name : Test
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v4
27+ - uses : dtolnay/rust-toolchain@stable
28+ - uses : Swatinem/rust-cache@v2
29+ - run : cargo test
30+
31+ fmt :
32+ name : Formatting
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@v4
36+ - uses : dtolnay/rust-toolchain@stable
37+ with :
38+ components : rustfmt
39+ - run : cargo fmt --check
40+
41+ clippy :
42+ name : Clippy
43+ runs-on : ubuntu-latest
44+ steps :
45+ - uses : actions/checkout@v4
46+ - uses : dtolnay/rust-toolchain@stable
47+ with :
48+ components : clippy
49+ - uses : Swatinem/rust-cache@v2
50+ - run : cargo clippy -- -D warnings
You can’t perform that action at this time.
0 commit comments