-
Notifications
You must be signed in to change notification settings - Fork 603
188 lines (161 loc) · 5.33 KB
/
ci.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
name: CI
env:
VOLTA_FEATURE_PNPM: 1
on:
push:
branches:
- master
- 'v*'
pull_request: {}
schedule:
- cron: '0 3 * * *' # daily, at 3am
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
workspace:
- test-esa
- classic-test-app
- test-app
- ember-simple-auth
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: lint
run: pnpm run --filter ${{ matrix.workspace }} lint
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
workspace:
- test-esa
- classic-test-app
- test-app
test-suite:
- test:one ember-lts-3.28
- test:one ember-4.0
- test:one ember-lts-4.4
- test:one ember-lts-4.8
- test:one ember-lts-4.12
- test:one ember-lts-5.8
- test:one ember-default
- test:one ember-release
allow-failure: [false]
include:
- workspace: test-esa
test-suite: "test:one embroider-safe"
allow-failure: false
- workspace: test-esa
test-suite: "test:one embroider-optimized"
allow-failure: false
- workspace: test-app
test-suite: "test:one embroider-safe"
allow-failure: false
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: tests
run: pnpm run --filter ${{ matrix.workspace }} ${{ matrix.test-suite }}
continue-on-error: ${{ matrix.allow-failure }}
allow-fail-try-scenarios:
name: ${{ matrix.workspace }} ${{ matrix.test-suite }} - Allowed to fail
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: write
strategy:
fail-fast: false
matrix:
workspace:
- test-esa
- classic-test-app
- test-app
test-suite:
- test:one ember-beta
- test:one ember-canary
include:
- workspace: test-app
test-suite: "test:one embroider-optimized"
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: Allowed to fail tests
id: allowed_to_fail_tests
run: pnpm run --filter ${{ matrix.workspace }} ${{ matrix.test-suite }}
continue-on-error: true
- uses: mainmatter/continue-on-error-comment@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
outcome: ${{ steps.allowed_to_fail_tests.outcome }}
test-id: ${{ matrix.workspace }} ${{ matrix.test-suite }}
extra-tests:
name: Tests (Floating Dependenies)
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
workspace:
- test-esa
- classic-test-app
- test-app
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install --no-lockfile
- name: tests
run: pnpm run --filter ${{ matrix.workspace }} test
continue-on-error: true
node-tests:
name: Node Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: tests
run: pnpm run --filter test-esa test:node