18
18
- windows-latest
19
19
runs-on : ${{matrix.platform}}
20
20
steps :
21
- - uses : actions/checkout@main
22
- with :
23
- fetch-depth : 0
24
-
25
- - name : Set Node.js 12.x
26
- uses : actions/setup-node@main
27
- with :
28
- node-version : 12.x
29
-
30
- - name : Get yarn cache directory path
31
- id : yarn-cache-dir-path
32
- run : echo "::set-output name=dir::$(yarn cache dir)"
33
-
34
- - uses : actions/cache@v2
35
- id : yarn-cache
36
- with :
37
- path : |
38
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
39
- node_modules
40
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
41
- restore-keys : |
42
- ${{ runner.os }}-yarn-
43
-
44
- - name : Install Dependencies
45
- run : yarn
21
+ - uses : actions/checkout@v3
22
+ - uses : ./.github/actions/ci-setup
46
23
47
24
- name : Run Tests
48
25
run : yarn test:ci --color
55
32
name : TypeScript
56
33
runs-on : ubuntu-latest
57
34
steps :
58
- - uses : actions/checkout@main
59
-
60
- - name : Set Node.js 12.x
61
- uses : actions/setup-node@main
62
- with :
63
- node-version : 12.x
64
-
65
- - name : Get yarn cache directory path
66
- id : yarn-cache-dir-path
67
- run : echo "::set-output name=dir::$(yarn cache dir)"
68
-
69
- - uses : actions/cache@v2
70
- id : yarn-cache
71
- with :
72
- path : |
73
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
74
- node_modules
75
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
76
- restore-keys : |
77
- ${{ runner.os }}-yarn-
78
-
79
- - name : Install Dependencies
80
- run : yarn
35
+ - uses : actions/checkout@v3
36
+ - uses : ./.github/actions/ci-setup
81
37
82
38
- name : Check Types
83
39
run : yarn tsc
86
42
name : Test React 18
87
43
runs-on : ubuntu-latest
88
44
steps :
89
- - uses : actions/checkout@main
90
-
91
- - name : Set Node.js 12.x
92
- uses : actions/setup-node@main
93
- with :
94
- node-version : 12.x
95
-
96
- - name : Get yarn cache directory path
97
- id : yarn-cache-dir-path
98
- run : echo "::set-output name=dir::$(yarn cache dir)"
99
-
100
- - uses : actions/cache@v2
101
- id : yarn-cache
102
- with :
103
- path : |
104
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
105
- node_modules
106
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
107
- restore-keys : |
108
- ${{ runner.os }}-yarn-
109
-
110
- - name : Install Dependencies
111
- run : yarn
45
+ - uses : actions/checkout@v3
46
+ - uses : ./.github/actions/ci-setup
112
47
113
48
- name : Run Tests with React 18
114
49
run : yarn test:react18:ci
@@ -117,29 +52,8 @@ jobs:
117
52
name : Test Dist
118
53
runs-on : ubuntu-latest
119
54
steps :
120
- - uses : actions/checkout@main
121
-
122
- - name : Set Node.js 12.x
123
- uses : actions/setup-node@main
124
- with :
125
- node-version : 12.x
126
-
127
- - name : Get yarn cache directory path
128
- id : yarn-cache-dir-path
129
- run : echo "::set-output name=dir::$(yarn cache dir)"
130
-
131
- - uses : actions/cache@v2
132
- id : yarn-cache
133
- with :
134
- path : |
135
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
136
- node_modules
137
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
138
- restore-keys : |
139
- ${{ runner.os }}-yarn-
140
-
141
- - name : Install Dependencies
142
- run : yarn
55
+ - uses : actions/checkout@v3
56
+ - uses : ./.github/actions/ci-setup
143
57
144
58
- name : Dist Tests
145
59
run : yarn test:prod
@@ -148,79 +62,18 @@ jobs:
148
62
name : Linting
149
63
runs-on : ubuntu-latest
150
64
steps :
151
- - uses : actions/checkout@main
152
-
153
- - name : Set Node.js 12.x
154
- uses : actions/setup-node@main
155
- with :
156
- node-version : 12.x
157
-
158
- - name : Get yarn cache directory path
159
- id : yarn-cache-dir-path
160
- run : echo "::set-output name=dir::$(yarn cache dir)"
161
-
162
- - uses : actions/cache@v2
163
- id : yarn-cache
164
- with :
165
- path : |
166
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
167
- node_modules
168
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
169
- restore-keys : |
170
- ${{ runner.os }}-yarn-
171
-
172
- - name : Install Dependencies
173
- run : yarn
65
+ - uses : actions/checkout@v3
66
+ - uses : ./.github/actions/ci-setup
174
67
175
68
- name : ESLint
176
69
run : yarn lint:check
177
70
178
71
dtslint :
179
- name : DTSLint
72
+ name : dtslint
180
73
runs-on : ubuntu-latest
181
- strategy :
182
- fail-fast : false
183
- matrix :
184
- package :
185
- - cache
186
- - css
187
- - hash
188
- - is-prop-valid
189
- - jest
190
- - memoize
191
- - native
192
- - react
193
- - serialize
194
- - server
195
- - sheet
196
- - styled
197
- - utils
198
- - weak-memoize
199
-
200
74
steps :
201
- - uses : actions/checkout@main
202
-
203
- - name : Set Node.js 12.x
204
- uses : actions/setup-node@main
205
- with :
206
- node-version : 12.x
207
-
208
- - name : Get yarn cache directory path
209
- id : yarn-cache-dir-path
210
- run : echo "::set-output name=dir::$(yarn cache dir)"
211
-
212
- - uses : actions/cache@v2
213
- id : yarn-cache
214
- with :
215
- path : |
216
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
217
- node_modules
218
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
219
- restore-keys : |
220
- ${{ runner.os }}-yarn-
221
-
222
- - name : Install Dependencies
223
- run : yarn
75
+ - uses : actions/checkout@v3
76
+ - uses : ./.github/actions/ci-setup
224
77
225
- - name : TypeScript
226
- run : cd packages/${{ matrix.package }} && yarn test:typescript
78
+ - name : dtslint
79
+ run : yarn test:typescript
0 commit comments