-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
352 lines (338 loc) · 9.88 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
name: CI
on:
pull_request:
push:
branches:
- master
- beta
- release
- 'release-*'
- 'lts-*'
tags:
- '*'
concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true
jobs:
lint:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Yarn install
run: yarn --frozen-lockfile
- name: Lint features
run: yarn lint:features
- name: Lint js
run: yarn lint:js
- name: Check for TypeScript problems
run: yarn problems
test-infra:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Yarn install
run: yarn --frozen-lockfile
- name: Yarn test infra compatWith 3.0
env:
COMPAT_WITH: '3.0'
run: yarn test:infra
- name: Yarn test infra compatWith 3.8
env:
COMPAT_WITH: '3.8'
run: yarn test:infra
- name: Yarn test infra compatWith 3.12
env:
COMPAT_WITH: '3.12'
run: yarn test:infra
- name: Yarn test infra compatWith 3.16
env:
COMPAT_WITH: '3.16'
run: yarn test:infra
- name: Yarn test infra compatWith 99.0
env:
COMPAT_WITH: '99.0'
run: yarn test:infra
basic-tests:
timeout-minutes: 20
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --network-timeout=300000
- name: Launcher Info
run: |
yarn run testem launchers
- name: Basic tests
run: yarn test
- name: Production build
run: yarn test:production
- name: Docs tests
run: yarn test:docs
- if: matrix.os != 'windows-latest'
name: Node tests
run: yarn test:node
- if: matrix.os == 'ubuntu-latest'
name: Encapsulation tests
run: yarn test:encapsulation
- if: |
matrix.os == 'ubuntu-latest' &&
github.event_name == 'pull_request' && (
github.base_ref == 'master' || github.base_ref == 'beta'
) || github.event_name == 'push' && (
endsWith(github.ref, '/master') || endsWith(github.ref, '/beta')
)
name: Enable All In progress features
env:
EMBER_DATA_FEATURE_OVERRIDE: ENABLE_ALL_OPTIONAL
run: yarn test
- if: |
matrix.os == 'ubuntu-latest' &&
github.event_name == 'pull_request' && (
github.base_ref == 'master' || github.base_ref == 'beta'
) || github.event_name == 'push' && (
endsWith(github.ref, '/master') || endsWith(github.ref, '/beta')
)
name: Disabled All In progress features
env:
EMBER_DATA_FEATURE_OVERRIDE: DISABLE_ALL
run: yarn test
- if: |
github.event_name == 'pull_request' && (
github.base_ref == 'master' || github.base_ref == 'beta'
) || github.event_name == 'push' && (
endsWith(github.ref, '/master') || endsWith(github.ref, '/beta')
)
name: Remove All Deprecations
env:
EMBER_DATA_FULL_COMPAT: true
run: yarn test:production
fastboot-tests:
needs: [lint]
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
scenario: [fastboot-with-ember-fetch]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --network-timeout=300000
- name: Fastboot Test ${{ matrix.scenario }}
timeout-minutes: 12
run: yarn test:fastboot ${{ matrix.scenario }}
browser-tests:
needs: [lint]
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
launcher: [Chrome, Firefox]
os: [macos-latest, windows-latest, ubuntu-latest]
exclude:
- os: ubuntu-latest
launcher: Firefox
- os: windows-latest
launcher: Firefox
- os: macos-latest
launcher: Chrome
- os: windows-latest
launcher: Chrome
runs-on: ${{ matrix.os }}
name: ${{matrix.launcher}} on ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --network-timeout=300000
- name: Launcher Info
run: |
yarn run testem launchers
- name: Run Production Test
timeout-minutes: 10
env:
TESTEM_CI_LAUNCHER: ${{ matrix.launcher }}
CI: true
run:
yarn test:production
floating-dependencies:
timeout-minutes: 10
needs: [lint, basic-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies w/o lockfile
run: yarn install --no-lockfile --non-interactive
- name: Basic Tests
run: yarn test
lts:
needs: [lint, basic-tests]
strategy:
fail-fast: false
matrix:
scenario: [ember-lts-4.4, ember-lts-3.28]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Basic tests with ${{ matrix.scenario }}
timeout-minutes: 10
env:
CI: true
run: yarn test:try-one ${{ matrix.scenario }}
releases:
timeout-minutes: 10
needs: [lint, basic-tests]
if: |
github.event_name == 'pull_request' && (
github.base_ref == 'master' || github.base_ref == 'beta'
) || github.event_name == 'push' && (
endsWith(github.ref, '/master') || endsWith(github.ref, '/beta')
)
strategy:
fail-fast: false
matrix:
release: [ember-release, ember-beta]
include:
- release: ember-beta
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Basic tests with ${{ matrix.release }}
env:
CI: true
run: yarn test:try-one ${{ matrix.release }}
continue-on-error: ${{ matrix['continue-on-error'] == true }}
additional-scenarios:
timeout-minutes: 8
needs: [lint, basic-tests]
strategy:
matrix:
scenario:
[
with-native-fetch,
with-ember-fetch-no-jquery,
with-ember-fetch-and-jquery,
with-jquery,
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --network-timeout=300000
- name: Basic tests with ${{ matrix.scenario }}
env:
CI: true
run: yarn test:try-one ${{ matrix.scenario }}
node-version-test:
name: Use Node.js ${{ matrix.node-version }}
timeout-minutes: 8
needs: [lint, basic-tests]
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 18.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies w/o lockfile
run: yarn install --no-lockfile --non-interactive
- name: Basic Tests
run: yarn test
external-partners:
needs: [additional-scenarios, basic-tests, floating-dependencies, lint, lts, releases]
if: |
github.event_name == 'pull_request' && (
github.base_ref == 'master' || github.base_ref == 'beta'
) || github.event_name == 'push' && (
endsWith(github.ref, '/master') || endsWith(github.ref, '/beta')
)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
partner:
[
# ember-data-relationship-tracker,
ember-m3,
ember-observer,
# ember-resource-metadata,
factory-guy,
# ilios-frontend,
model-fragments,
storefront,
travis-web,
]
include:
- partner: storefront
continue-on-error: true
- partner: factory-guy
continue-on-error: true
- partner: travis-web
continue-on-error: true
- partner: model-fragments
continue-on-error: true
- partner: ember-observer
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Generate package tarballs
run: node ./scripts/packages-for-commit.js
- name: Run Tests
timeout-minutes: 16
env:
CI: true
run: yarn test-external:${{ matrix.partner }}
continue-on-error: ${{ matrix['continue-on-error'] == true }}