File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,55 +8,30 @@ name: ci
88
99jobs :
1010 test :
11- runs-on : ubuntu-20.04
11+ runs-on : ubuntu-latest
1212 strategy :
1313 matrix :
1414 rust :
1515 - stable
1616 - beta
1717 - nightly
1818 - 1.47.0
19-
2019 steps :
21- - uses : actions/checkout@v2
22-
23- - uses : actions-rs/toolchain@v1
20+ - uses : actions/checkout@v4
21+ - uses : dtolnay/rust-toolchain@master
2422 with :
25- profile : minimal
2623 toolchain : ${{ matrix.rust }}
27- override : true
28-
29- - name : Cache Rust dependencies
30- uses : Swatinem/rust-cache@v1
31-
32- - name : Run all tests
33- uses : actions-rs/cargo@v1
34- with :
35- command : test
36- args : --all
24+ - uses : Swatinem/rust-cache@v2
25+ - run : cargo test --all
3726
3827 check :
39- runs-on : ubuntu-20.04
28+ runs-on : ubuntu-latest
4029
4130 steps :
42- - uses : actions/checkout@v2
43-
44- - uses : actions-rs/toolchain@v1
31+ - uses : actions/checkout@v4
32+ - uses : dtolnay/rust-toolchain@beta
4533 with :
46- profile : minimal
47- toolchain : beta
48- override : true
4934 components : rustfmt, clippy
50-
51- - name : Cache Rust dependencies
52- uses : Swatinem/rust-cache@v1
53-
54- - uses : actions-rs/cargo@v1
55- with :
56- command : fmt
57- args : --all -- --check
58-
59- # - uses: actions-rs/cargo@v1
60- # with:
61- # command: clippy
62- # args: -- -D warnings
35+ - uses : Swatinem/rust-cache@v2
36+ - run : cargo fmt --all -- --check
37+ # - run: cargo clippy --all --all-targets -- -D warnings
You can’t perform that action at this time.
0 commit comments