@@ -40,72 +40,46 @@ jobs:
40
40
runs-on : ${{ matrix.os }}
41
41
steps :
42
42
- name : Checkout
43
- uses : actions/checkout@v2
43
+ uses : actions/checkout@v3
44
44
- name : Install rust
45
- uses : actions-rs/ toolchain@v1
45
+ uses : dtolnay/rust- toolchain@master
46
46
with :
47
47
toolchain : ${{ matrix.rust }}
48
- override : true
49
48
- uses : Swatinem/rust-cache@v2
50
49
- 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 "$CI_TWITCH_OAUTH2_FEATURES" --workspace
55
51
fmt :
56
52
name : Rustfmt
57
53
runs-on : ubuntu-latest
58
54
steps :
59
- - uses : actions/checkout@v2
60
- - uses : actions-rs/ toolchain@v1
55
+ - uses : actions/checkout@v3
56
+ - uses : dtolnay/rust- toolchain@nightly
61
57
with :
62
- profile : minimal
63
- toolchain : nightly
64
- override : true
65
58
components : rustfmt
66
59
- 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
71
61
clippy :
72
62
name : Clippy
73
63
runs-on : ubuntu-latest
74
64
steps :
75
- - uses : actions/checkout@v2
76
- - uses : actions-rs/ toolchain@v1
65
+ - uses : actions/checkout@v3
66
+ - uses : dtolnay/rust- toolchain@nightly
77
67
with :
78
- profile : minimal
79
- toolchain : nightly
80
- override : true
81
68
components : clippy
82
69
- uses : Swatinem/rust-cache@v2
83
70
- name : Run clippy
84
- uses : actions-rs/cargo@v1
85
- with :
86
- command : clippy
87
- args : --locked
71
+ run : cargo clippy --locked
88
72
- 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
93
74
docs :
94
75
name : Docs
95
76
runs-on : ubuntu-latest
96
77
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
103
80
- uses : Swatinem/rust-cache@v2
104
81
# We do the following to make sure docs.rs can document properly without anything broken, and that docs are working.
105
82
- 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
110
84
- name : Check twitch_oauth2 docs
111
85
run : cargo xtask doc
0 commit comments