-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (47 loc) · 1.55 KB
/
Copy pathci.yml
File metadata and controls
58 lines (47 loc) · 1.55 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
name: CI
on:
pull_request:
push:
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
name: Lint, unit, e2e
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
# remix@3.0.0-beta.5 requires Node >=24.3.0.
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint / typecheck
run: npm run lint
# Vitest runs in browser mode (real Chromium), so the browser must be
# installed before the unit tests too, not just the e2e suite.
- name: Install Playwright Chromium
run: npx playwright install --with-deps chromium
- name: Unit tests
run: npm test
# The preview-audio e2e tests need a running audio server: without an
# output device Chromium keeps realtime AudioContexts suspended and the
# music-normalization assertions never see their gains apply.
- name: Start PulseAudio (null sink)
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq pulseaudio
pulseaudio --start --exit-idle-time=-1
- name: E2E tests
run: npm run test:e2e
- name: Upload Playwright traces on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-test-results
path: test-results/
retention-days: 7