@@ -33,50 +33,14 @@ jobs:
33
33
- name : make check
34
34
run : ${{ matrix.env }} make check
35
35
36
- fmt :
37
- name : rustfmt
38
- runs-on : ubuntu-latest
39
- steps :
40
- - uses : actions/checkout@v2
41
- - uses : actions-rs/toolchain@v1
42
- with :
43
- profile : minimal
44
- toolchain : nightly
45
- override : true
46
- - run : rustup component add rustfmt
47
- - uses : actions-rs/cargo@v1
48
- with :
49
- command : fmt
50
- args : --all -- --check
51
-
52
- clippy :
53
- name : clippy
54
- runs-on : ubuntu-latest
55
- steps :
56
- - uses : actions/checkout@v2
57
- - uses : actions-rs/toolchain@v1
58
- with :
59
- toolchain : nightly
60
- components : clippy
61
- override : true
62
- - name : Install Protoc
63
- uses : arduino/setup-protoc@v1
64
- with :
65
- version : ' 3.x'
66
- repo-token : ${{ secrets.GITHUB_TOKEN }}
67
- - name : Rust Cache
68
-
69
- - uses : actions-rs/clippy-check@v1
70
- with :
71
- token : ${{ secrets.GITHUB_TOKEN }}
72
- args : --all-targets --all-features -- -D clippy::all
73
- name : Clippy Output
74
-
75
36
unit-test :
76
37
name : unit test
77
38
env :
78
39
CARGO_INCREMENTAL : 0
79
40
runs-on : ubuntu-latest
41
+ strategy :
42
+ matrix :
43
+ env : [ '', 'RUST_PROTOBUF=1' ]
80
44
steps :
81
45
- uses : actions/checkout@v2
82
46
- uses : actions-rs/toolchain@v1
@@ -91,14 +55,19 @@ jobs:
91
55
repo-token : ${{ secrets.GITHUB_TOKEN }}
92
56
- name : Rust Cache
93
57
58
+ with :
59
+ key : ${{ matrix.env }}
94
60
- name : unit test
95
- run : make unit-test
61
+ run : ${{ matrix.env }} make unit-test
96
62
97
63
integration-test :
98
64
name : integration test
99
65
env :
100
66
CARGO_INCREMENTAL : 0
101
67
runs-on : ubuntu-latest
68
+ strategy :
69
+ matrix :
70
+ env : [ '', 'RUST_PROTOBUF=1' ]
102
71
steps :
103
72
- uses : actions/checkout@v2
104
73
- uses : actions-rs/toolchain@v1
113
82
repo-token : ${{ secrets.GITHUB_TOKEN }}
114
83
- name : Rust Cache
115
84
85
+ with :
86
+ key : ${{ matrix.env }}
116
87
- name : install tiup
117
88
run : curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
118
89
- name : start tiup playground
125
96
sleep 1
126
97
done
127
98
- name : integration test
128
- run : MULTI_REGION=1 make integration-test
99
+ run : ${{ matrix.env }} MULTI_REGION=1 make integration-test
0 commit comments