@@ -15,16 +15,10 @@ jobs:
1515 - name : Checkout repository
1616 uses : actions/checkout@v3
1717 - name : Install Rust toolchain
18- uses : actions-rs/toolchain@v1
19- with :
20- toolchain : stable
21- profile : minimal
22- override : true
18+ uses : dtolnay/rust-toolchain@stable
2319 - uses : Swatinem/rust-cache@v2
24- - uses : actions-rs/cargo@v1
25- with :
26- command : test
27- args : --all-features --workspace
20+ - name : Run tests
21+ run : cargo test --all-features --workspace
2822
2923 rustfmt :
3024 name : Rustfmt
@@ -33,18 +27,12 @@ jobs:
3327 - name : Checkout repository
3428 uses : actions/checkout@v3
3529 - name : Install Rust toolchain
36- uses : actions-rs/ toolchain@v1
30+ uses : dtolnay/rust- toolchain@stable
3731 with :
38- toolchain : stable
39- profile : minimal
40- override : true
4132 components : rustfmt
4233 - uses : Swatinem/rust-cache@v2
4334 - name : Check formatting
44- uses : actions-rs/cargo@v1
45- with :
46- command : fmt
47- args : --all --check
35+ run : cargo fmt --all --check
4836
4937 clippy :
5038 name : Clippy
@@ -53,18 +41,12 @@ jobs:
5341 - name : Checkout repository
5442 uses : actions/checkout@v3
5543 - name : Install Rust toolchain
56- uses : actions-rs/ toolchain@v1
44+ uses : dtolnay/rust- toolchain@stable
5745 with :
58- toolchain : stable
59- profile : minimal
60- override : true
6146 components : clippy
6247 - uses : Swatinem/rust-cache@v2
6348 - name : Clippy check
64- uses : actions-rs/cargo@v1
65- with :
66- command : clippy
67- args : --all-targets --all-features --workspace -- -D warnings
49+ run : cargo clippy --all-targets --all-features --workspace -- -D warnings
6850
6951 docs :
7052 name : Docs
@@ -73,35 +55,10 @@ jobs:
7355 - name : Checkout repository
7456 uses : actions/checkout@v3
7557 - name : Install Rust toolchain
76- uses : actions-rs/toolchain@v1
77- with :
78- toolchain : stable
79- profile : minimal
80- override : true
58+ uses : dtolnay/rust-toolchain@stable
8159 - uses : Swatinem/rust-cache@v2
8260 - name : Check documentation
8361 env :
8462 RUSTDOCFLAGS : -D warnings
85- uses : actions-rs/cargo@v1
86- with :
87- command : doc
88- args : --no-deps --document-private-items --all-features --workspace --examples
89-
90- publish-dry-run :
91- name : Publish dry run
92- runs-on : ubuntu-latest
93- steps :
94- - name : Checkout repository
95- uses : actions/checkout@v3
96- - name : Install Rust toolchain
97- uses : actions-rs/toolchain@v1
98- with :
99- toolchain : stable
100- profile : minimal
101- override : true
102- - uses : Swatinem/rust-cache@v2
103- - uses : actions-rs/cargo@v1
104- with :
105- command : publish
106- args : --dry-run
63+ run : cargo doc --no-deps --document-private-items --all-features --workspace --examples
10764
0 commit comments