@@ -40,72 +40,46 @@ jobs:
4040 runs-on : ${{ matrix.os }}
4141 steps :
4242 - name : Checkout
43- uses : actions/checkout@v2
43+ uses : actions/checkout@v3
4444 - name : Install rust
45- uses : actions-rs/ toolchain@v1
45+ uses : dtolnay/rust- toolchain@master
4646 with :
4747 toolchain : ${{ matrix.rust }}
48- override : true
4948 - uses : Swatinem/rust-cache@v2
5049 - name : Test twitch_oauth2
51- uses : actions-rs/cargo@v1
52- with :
53- command : test
54- args : --all-targets --features "${{ env.CI_TWITCH_OAUTH2_FEATURES }}" --workspace
50+ run : cargo test --all-targets --features "${{ env.CI_TWITCH_OAUTH2_FEATURES }}" --workspace
5551 fmt :
5652 name : Rustfmt
5753 runs-on : ubuntu-latest
5854 steps :
59- - uses : actions/checkout@v2
60- - uses : actions-rs/ toolchain@v1
55+ - uses : actions/checkout@v3
56+ - uses : dtolnay/rust- toolchain@nightly
6157 with :
62- profile : minimal
63- toolchain : nightly
64- override : true
6558 components : rustfmt
6659 - name : Run fmt --all -- --check
67- uses : actions-rs/cargo@v1
68- with :
69- command : fmt
70- args : --all -- --check
60+ run : cargo fmt --all -- --check
7161 clippy :
7262 name : Clippy
7363 runs-on : ubuntu-latest
7464 steps :
75- - uses : actions/checkout@v2
76- - uses : actions-rs/ toolchain@v1
65+ - uses : actions/checkout@v3
66+ - uses : dtolnay/rust- toolchain@nightly
7767 with :
78- profile : minimal
79- toolchain : nightly
80- override : true
8168 components : clippy
8269 - uses : Swatinem/rust-cache@v2
8370 - name : Run clippy
84- uses : actions-rs/cargo@v1
85- with :
86- command : clippy
87- args : --locked
71+ run : cargo clippy --locked
8872 - name : Run clippy --all-targets --all-features --workspace
89- uses : actions-rs/cargo@v1
90- with :
91- command : clippy
92- args : --locked --all-targets --all-features --workspace
73+ run : cargo clippy --locked --all-targets --all-features --workspace
9374 docs :
9475 name : Docs
9576 runs-on : ubuntu-latest
9677 steps :
97- - uses : actions/checkout@v2
98- - uses : actions-rs/toolchain@v1
99- with :
100- profile : minimal
101- toolchain : nightly
102- override : true
78+ - uses : actions/checkout@v3
79+ - uses : dtolnay/rust-toolchain@nightly
10380 - uses : Swatinem/rust-cache@v2
10481 # We do the following to make sure docs.rs can document properly without anything broken, and that docs are working.
10582 - name : Run doc tests
106- uses : actions-rs/cargo@v1
107- with :
108- command : test
109- args : --doc --all-features
83+ run : cargo test --doc --all-features
11084 - name : Check twitch_oauth2 docs
11185 run : cargo xtask doc
0 commit comments