Skip to content

Commit e02a456

Browse files
committed
wip
1 parent f4e549d commit e02a456

1 file changed

Lines changed: 32 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,49 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
browser:
14-
name: Test Browser
13+
browser-macos:
14+
name: Test Browser on macOS
1515
runs-on: macos-latest
1616
env:
1717
GITHUB_ACTIONS_OUTPUT: ""
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
browser: [chrome, firefox, safari]
21+
browser: [safari]
2222
suite: [default, disabled, main]
2323
steps:
2424
- name: Extract Week Number
2525
run: echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
2626

27-
- name: Install Firefox
28-
if: ${{ matrix.browser == 'firefox' }}
29-
run: brew install --cask firefox
27+
- name: Checkout Branch
28+
uses: actions/checkout@v5
29+
30+
- name: Setup Node
31+
uses: actions/setup-node@v5
32+
with:
33+
node-version-file: package.json
34+
cache: npm
35+
36+
- name: Install Node Packages
37+
run: npm ci
38+
39+
- name: Run Tests
40+
run: |
41+
echo "Running in $BROWSER"
42+
npm run test:${{ matrix.browser }} -- ${{ matrix.suite }}
43+
browser-linux:
44+
name: Test Browser on Linux
45+
runs-on: ubuntu-latest
46+
env:
47+
GITHUB_ACTIONS_OUTPUT: ""
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
browser: [chrome, firefox]
52+
suite: [default, disabled, main]
53+
steps:
54+
- name: Extract Week Number
55+
run: echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
3056

3157
- name: Checkout Branch
3258
uses: actions/checkout@v5

0 commit comments

Comments
 (0)