forked from emberjs/data
-
Notifications
You must be signed in to change notification settings - Fork 0
192 lines (184 loc) · 5.07 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
name: CI
on:
pull_request:
push:
branches:
- master
- beta
- release
- 'release-*'
- 'lts-*'
tags:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 10.x
- 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
basic-tests:
strategy:
matrix:
os: [macOS-10.14, windows-2016, ubuntu-18.04]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies
run: yarn install
- name: Basic tests
run: yarn test
- name: Encapsulation tests
run: yarn test:encapsulation
- name: Fastboot tests
run: yarn test:fastboot
- name: Production build
run: yarn test:production
- name: Docs tests
run: yarn test:docs
- name: Node tests
run: yarn test:node
- 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: In progress features
env:
EMBER_DATA_FEATURE_OVERRIDE: ENABLE_ALL_OPTIONAL
run: yarn test:enabled-in-progress-features
floating-dependencies:
needs: [lint, basic-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies w/o lockfile
run: yarn install --no-lockfile --non-interactive
- name: Basic Tests
run: yarn test
lts:
needs: [lint, basic-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies
run: yarn install
- name: Basic Tests with ember-lts-3.8
run: yarn test:try-one ember-lts-3.8
releases:
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:
scenario: [
ember-release,
ember-beta,
ember-canary,
ember-release-with-jquery
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies
run: yarn install
- name: Basic tests with ${{ matrix.scenario }}
run: yarn test:try-one ${{ matrix.scenario }}
additional-scenarios:
needs: [lint, basic-tests]
strategy:
matrix:
scenario: [
default-with-jquery,
with-ember-fetch,
with-max-transpilation
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies
run: yarn install
- name: Basic tests with ${{ matrix.scenario }}
run: yarn test:try-one ${{ matrix.scenario }}
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-change-tracker,
ember-data-relationship-tracker,
ember-m3,
ember-observer,
ember-resource-metadata,
factory-guy,
ilios-frontend,
model-fragments,
storefront,
travis-web
]
include:
- partner: ember-data-change-tracker
continue-on-error: true
- partner: factory-guy
continue-on-error: true
- partner: model-fragments
continue-on-error: true
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies
run: yarn install
- name: Generate package tarballs
run: node ./bin/packages-for-commit.js
- name: Run Tests
env:
CI: true
run: yarn test-external:${{ matrix.partner }}
continue-on-error: ${{ matrix['continue-on-error'] == true }}