@@ -29,75 +29,47 @@ jobs:
29
29
runs-on : ${{ matrix.os }}
30
30
31
31
steps :
32
- - uses : actions/checkout@v2
33
- - uses : actions-rs/ toolchain@v1
32
+ - uses : actions/checkout@v3
33
+ - uses : dtolnay/rust- toolchain@master
34
34
with :
35
- profile : minimal
36
35
toolchain : ${{ matrix.rust }}
37
- override : true
38
- - uses : actions-rs/cargo@v1
39
- with :
40
- command : build
41
- args : --all-targets
36
+ - run : cargo build --all-targets
42
37
# Run tests
43
38
- name : Run tests
44
- uses : actions-rs/cargo@v1
45
- with :
46
- command : test
39
+ run : cargo test
47
40
# Run tests enabling the serde feature
48
41
- name : Run tests with the serde feature
49
- uses : actions-rs/cargo@v1
50
- with :
51
- command : test
52
- args : --features "url/serde,url/expose_internals"
42
+ run : cargo test --features "url/serde,url/expose_internals"
53
43
# The #[debugger_visualizer] attribute is currently gated behind an unstable feature flag.
54
44
# In order to test the visualizers for the url crate, they have to be tested on a nightly build.
55
45
- name : Run debugger_visualizer tests
56
46
if : |
57
47
matrix.os == 'windows-latest' &&
58
48
matrix.rust == 'nightly'
59
- uses : actions-rs/cargo@v1
60
- with :
61
- command : test
62
- args : --test debugger_visualizer --features "url/serde,url/debugger_visualizer" -- --test-threads=1
49
+ run : cargo test --test debugger_visualizer --features "url/serde,url/debugger_visualizer" -- --test-threads=1
63
50
64
51
WASM :
65
52
runs-on : ubuntu-latest
66
53
steps :
67
- - uses : actions/checkout@v2
68
- - uses : actions-rs/ toolchain@v1
54
+ - uses : actions/checkout@v3
55
+ - uses : dtolnay/rust- toolchain@stable
69
56
with :
70
- profile : minimal
71
- toolchain : stable
72
- target : wasm32-unknown-unknown
73
- override : true
74
- - uses : actions-rs/cargo@v1
75
- with :
76
- command : build
77
- args : --target wasm32-unknown-unknown
57
+ targets : wasm32-unknown-unknown
58
+ - run : cargo build --target wasm32-unknown-unknown
78
59
79
60
Lint :
80
61
runs-on : ubuntu-latest
81
62
steps :
82
- - uses : actions/checkout@v2
83
- - uses : actions-rs/ toolchain@v1
63
+ - uses : actions/checkout@v3
64
+ - uses : dtolnay/rust- toolchain@stable
84
65
with :
85
- profile : minimal
86
- toolchain : stable
87
- override : true
88
66
components : rustfmt, clippy
89
- - uses : actions-rs/cargo@v1
90
- with :
91
- command : fmt
92
- args : --all -- --check
93
- - uses : actions-rs/cargo@v1
67
+ - run : cargo fmt --all --check
68
+ - run : cargo clippy --workspace --all-targets -- -D warnings
94
69
if : always()
95
- with :
96
- command : clippy
97
- args : --workspace --all-targets -- -D warnings
98
70
99
71
Audit :
100
72
runs-on : ubuntu-latest
101
73
steps :
102
- - uses : actions/checkout@v1
74
+ - uses : actions/checkout@v3
103
75
- uses : EmbarkStudios/cargo-deny-action@v1
0 commit comments