-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.88 KB
/
browserTests.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
name: BrowserTests
on: [push]
env:
PLAYWRIGHT_BROWSERS_PATH: 0
NODE_VERSION: 20
FORCE_COLOR: 3
jobs:
test:
strategy:
max-parallel: 1
matrix:
browser: [chromium, firefox]
# browser: [chromium, firefox, webkit]
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest]
exclude:
- browser: webkit
os: windows-latest
# - browser: webkit
# os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
- name: Install Node.js dependencies
run: npm ci
- name: Run Build
run: npm run build && npx playwright install
- name: Browser Test Development Chrome (Mocked)
if: startsWith(matrix.browser, 'chromium')
run: npm run browser-tests:local-mocked-chrome
- name: Browser Test Development Firefox (Mocked)
if: startsWith(matrix.browser, 'firefox')
run: npm run browser-tests:local-mocked-firefox
# - name: Browser Test Development webkit (Mocked)
# if: startsWith(matrix.browser, 'webkit')
# run: npm run browser-tests:local-mocked-webkit
- name: Browser Test Production Chrome (Prod)
if: startsWith(matrix.browser, 'chromium')
run: npm run browser-tests:local-prod-chrome
# - name: Browser Test Production Firefox (prod)
# if: startsWith(matrix.browser, 'firefox')
# run: npm run browser-tests:local-prod-firefox
# - name: Browser Test Production webkit (prod)
# if: startsWith(matrix.browser, 'webkit')
# run: npm run browser-tests:local-prod-webkit