-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
272 lines (270 loc) · 7.68 KB
/
Copy pathpush.yml
File metadata and controls
272 lines (270 loc) · 7.68 KB
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
on:
push:
branches:
- main
pull_request:
name: Install and Test
env:
FORCE_COLOR: 1
TURBO_TELEMETRY_DISABLED: 1
TURBO_NO_UPDATE_NOTIFIER: 1
jobs:
lambda-tests:
runs-on: ubuntu-latest
name: Lambda integration
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 25
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Install
run: bun ci
- name: Cache Turbo
uses: rharkor/caching-for-turbo@v2.3.11
- name: Test Lambda IT
run: |
bun run testlambda
- name: IT tests
timeout-minutes: 10
run: |
cd packages/it-tests && bun test src/lambda src/cloudrun --run
- name: Lambda tests
timeout-minutes: 10
run: |
cd packages/lambda && bunx remotion browser ensure && bun test src/test/integration --run
nextjs-tests:
runs-on: ubuntu-latest
name: Next.js SSR build
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 25
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Install
run: bun ci
- name: Cache Turbo
uses: rharkor/caching-for-turbo@v2.3.11
- name: Test Lambda IT
run: |
bun run build
- name: IT tests
timeout-minutes: 10
run: |
cd packages/player-example && bun run build-site
browser-tests:
runs-on: macos-latest
name: Browser tests
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 25
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Install
run: bun ci
- name: Install deps
run: cd packages/webcodecs && bunx playwright install --with-deps
- name: Cache Turbo
uses: rharkor/caching-for-turbo@v2.3.11
- name: Test Webcodecs
run: |
bun run testwebcodecs
- name: Install E2E deps
run: cd packages/example && bunx playwright install --with-deps
- name: Test Example E2E
run: |
bun run teste2e
webrenderer-tests:
runs-on: macos-latest
name: Web renderer tests
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 25
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Install
run: bun ci
- name: Install deps
run: cd packages/web-renderer && bunx playwright install --with-deps && cd ../media && bunx playwright install --with-deps
- name: Cache Turbo
uses: rharkor/caching-for-turbo@v2.3.11
- name: Test web renderer
run: |
bun run testwebrenderer
ssr-tests:
runs-on: ubuntu-latest
name: SSR + Monorepo checks
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 16
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Install
run: bun ci
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- uses: ruby/setup-ruby@master
with:
ruby-version: '3.1'
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: none
- run: pip install pylint boto3 pytest
- name: Cache Turbo
uses: rharkor/caching-for-turbo@v2.3.11
- name: Test SSR
timeout-minutes: 8
run: |
bun run testssr
- name: Monorepo checks
timeout-minutes: 10
run: |
cd packages/it-tests && bun test src/monorepo --run --timeout 40000
template-tests-check:
runs-on: ubuntu-latest
name: Template tests precheck
outputs:
should_run: ${{ steps.check.outputs.should_run }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 25
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Check if template tests are affected
id: check
run: |
set +e
bunx turbo-ignore @remotion/it-tests --task=testtemplates
status=$?
set -e
if [ "$status" -eq 0 ]; then
echo "should_run=false" >> "$GITHUB_OUTPUT"
echo "No relevant changes for testtemplates; skipping template-tests."
elif [ "$status" -eq 1 ]; then
echo "should_run=true" >> "$GITHUB_OUTPUT"
echo "Relevant changes detected for testtemplates; running template-tests."
else
echo "turbo-ignore failed with exit code $status"
exit "$status"
fi
template-tests:
name: Template integration on ${{ matrix.os }}
needs: template-tests-check
if: needs.template-tests-check.outputs.should_run == 'true'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
env:
BUN_INSTALL_CACHE_DIR: ${{ matrix.os == 'windows-latest' && 'D:\.bun\install\cache' || '' }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 25
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Cache Bun dependencies (Windows)
if: matrix.os == 'windows-latest'
uses: actions/cache@v5
with:
path: D:\.bun\install\cache
key: ${{ matrix.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ matrix.os }}-bun-
- name: Install
run: bun ci
- name: Cache Turbo
uses: rharkor/caching-for-turbo@v2.3.11
- name: Test templates
timeout-minutes: 20
run: |
bun run testtemplates
lint:
runs-on: ubuntu-latest
name: Linting + Formatting
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 25
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Install
run: bun ci
env:
CI: true
- name: Cache Turbo
uses: rharkor/caching-for-turbo@v2.3.11
- name: Perform stylecheck
timeout-minutes: 10
run: |
bun run stylecheck
build:
name: Build Node ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
node_version: 16
- os: windows-latest
node_version: 16
- os: macos-latest
node_version: 25
env:
BUN_INSTALL_CACHE_DIR: ${{ matrix.os == 'windows-latest' && 'D:\.bun\install\cache' || '' }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node_version }}
- uses: oven-sh/setup-bun@v2.1.2
with:
bun-version: 1.3.3
- name: Cache Bun dependencies (Windows)
if: matrix.os == 'windows-latest'
uses: actions/cache@v5
with:
path: D:\.bun\install\cache
key: ${{ matrix.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ matrix.os }}-bun-
- name: Install
run: bun ci
- name: Cache Turbo
uses: rharkor/caching-for-turbo@v2.3.11
- name: Build & Test
timeout-minutes: 30
run: |
bun run ci