1010 workflow_dispatch :
1111
1212jobs :
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 :
24- - name : Extract Week Number
25- run : echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
26-
27- - name : Install Firefox
28- if : ${{ matrix.browser == 'firefox' }}
29- run : brew install --cask firefox
3024
31- - name : Checkout Branch
25+ - &checkout-branch
26+ name : Checkout Branch
3227 uses : actions/checkout@v5
3328
34- - name : Setup Node
29+ - &setup-node
30+ name : Setup Node
3531 uses : actions/setup-node@v5
3632 with :
3733 node-version-file : package.json
3834 cache : npm
3935
40- - name : Install Node Packages
36+ - &install-node-packages
37+ name : Install Node Packages
4138 run : npm ci
4239
4340 - name : Run Tests
4441 run : |
4542 echo "Running in $BROWSER"
4643 npm run test:${{ matrix.browser }} -- ${{ matrix.suite }}
44+
45+ browser-linux :
46+ name : Test Browser on Linux
47+ runs-on : ubuntu-latest
48+ env :
49+ GITHUB_ACTIONS_OUTPUT : " "
50+ strategy :
51+ fail-fast : false
52+ matrix :
53+ browser : [chrome, firefox]
54+ suite : [default, disabled, main]
55+ steps :
56+ - *checkout-branch
57+ - *setup-node
58+ - *install-node-packages
59+ - name : Run Tests
60+ run : |
61+ echo "Running in $BROWSER"
62+ npm run test:${{ matrix.browser }} -- ${{ matrix.suite }}
4763 shell :
4864 name : Test Shell
4965 runs-on : ubuntu-latest
@@ -55,21 +71,13 @@ jobs:
5571 shell : [jsc, spidermonkey, v8]
5672 suite : [default, disabled, main]
5773 steps :
74+ - *checkout-branch
75+ - *setup-node
76+ - *install-node-packages
77+
5878 - name : Extract Week Number
5979 run : echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
6080
61- - name : Checkout Branch
62- uses : actions/checkout@v5
63-
64- - name : Setup Node
65- uses : actions/setup-node@v5
66- with :
67- node-version-file : package.json
68- cache : npm
69-
70- - name : Install Node Packages
71- run : npm ci
72-
7381 - name : Cache jsvu Binaries
7482 uses : actions/cache@v4
7583 with :
8997 with :
9098 fetch-depth : ${{ github.event_name == 'pull_request' && 2 || 0 }}
9199
92- - name : Setup Node
93- uses : actions/setup-node@v4
94- with :
95- node-version-file : package.json
96- cache : npm
97-
98- - name : Install Node Packages
99- run : npm ci
100+ - *setup-node
101+ - *install-node-packages
100102
101103 - name : Run Build
102104 run : |
0 commit comments