@@ -13,21 +13,14 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v1
16
+ uses : actions/checkout@v3
17
17
18
18
- name : Install Rust
19
- uses : actions-rs/ toolchain@v1
19
+ uses : dtolnay/rust- toolchain@stable
20
20
with :
21
- profile : minimal
22
- toolchain : stable
23
- override : true
24
21
components : rustfmt
25
22
26
- - name : cargo fmt --check
27
- uses : actions-rs/cargo@v1
28
- with :
29
- command : fmt
30
- args : --all -- --check
23
+ - run : cargo fmt --all --check
31
24
32
25
test :
33
26
name : Test
@@ -43,38 +36,26 @@ jobs:
43
36
- stable
44
37
steps :
45
38
- name : Checkout
46
- uses : actions/checkout@v1
39
+ uses : actions/checkout@v3
47
40
48
41
- name : Install Rust (${{ matrix.rust }})
49
- uses : actions-rs/ toolchain@v1
42
+ uses : dtolnay/rust- toolchain@master
50
43
with :
51
- profile : minimal
52
44
toolchain : ${{ matrix.rust }}
53
- override : true
54
45
55
46
- name : Install libssl-dev
56
47
run : sudo apt-get update && sudo apt-get install libssl-dev
57
48
- name : Build without unstable flag
58
- uses : actions-rs/cargo@v1
59
- with :
60
- command : build
49
+ run : cargo build
61
50
62
51
- name : Check with unstable flag
63
- uses : actions-rs/cargo@v1
64
- with :
65
- command : check
66
- args : --features unstable
52
+ run : cargo check --features unstable
67
53
68
54
- name : Run lib tests and doc tests
69
- uses : actions-rs/cargo@v1
70
- with :
71
- command : test
55
+ run : cargo test
72
56
73
57
- name : Run integration tests
74
- uses : actions-rs/cargo@v1
75
- with :
76
- command : test
77
- args : -p h2-tests
58
+ run : cargo test -p h2-tests
78
59
79
60
- name : Run h2spec
80
61
run : ./ci/h2spec.sh
@@ -99,16 +80,11 @@ jobs:
99
80
100
81
steps :
101
82
- name : Checkout
102
- uses : actions/checkout@v1
83
+ uses : actions/checkout@v3
103
84
104
85
- name : Install Rust (${{ matrix.rust }})
105
- uses : actions-rs/ toolchain@v1
86
+ uses : dtolnay/rust- toolchain@master
106
87
with :
107
- profile : minimal
108
88
toolchain : ${{ matrix.rust }}
109
- override : true
110
89
111
- - name : Check
112
- uses : actions-rs/cargo@v1
113
- with :
114
- command : check
90
+ - run : cargo check
0 commit comments