File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed 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+ schedule :
8+ - cron : " 25 6 * * 5"
9+
10+ jobs :
11+ test :
12+ strategy :
13+ matrix :
14+ os : [ubuntu-latest, macos-latest]
15+ rust : [stable, beta]
16+ exclude :
17+ - os : macos-latest
18+ rust : beta
19+
20+ runs-on : ${{ matrix.os }}
21+
22+ steps :
23+ - uses : actions/checkout@v2
24+ - uses : actions-rs/toolchain@v1
25+ with :
26+ profile : minimal
27+ toolchain : ${{ matrix.rust }}
28+ override : true
29+ - uses : actions-rs/cargo@v1
30+ with :
31+ command : check
32+ args : --all-features --all-targets
33+
34+ lint :
35+ runs-on : ubuntu-latest
36+ steps :
37+ - uses : actions/checkout@v2
38+ - uses : actions-rs/toolchain@v1
39+ with :
40+ profile : minimal
41+ toolchain : stable
42+ override : true
43+ components : rustfmt, clippy
44+ - uses : actions-rs/cargo@v1
45+ with :
46+ command : fmt
47+ args : --all -- --check
48+ - uses : actions-rs/cargo@v1
49+ if : always()
50+ with :
51+ command : clippy
52+ args : --workspace --all-targets --all-features -- -D warnings
53+
54+ audit :
55+ runs-on : ubuntu-latest
56+ steps :
57+ - uses : actions/checkout@v2
58+ - uses : EmbarkStudios/cargo-deny-action@v1
You can’t perform that action at this time.
0 commit comments