Skip to content

Commit 2714913

Browse files
committed
try
1 parent 05de9bb commit 2714913

1 file changed

Lines changed: 39 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,19 @@ on:
1010
workflow_dispatch:
1111

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

26-
- name: Install Firefox
27-
if: ${{ matrix.browser == 'firefox' }}
28-
run: brew install --cask firefox
29-
3026
- name: Checkout Branch
3127
uses: actions/checkout@v5
3228

@@ -50,6 +46,42 @@ jobs:
5046
echo "Running in $BROWSER"
5147
npm run test:${{ matrix.browser }}
5248
49+
test-linux:
50+
name: Test Linux
51+
runs-on: ubuntu-latest
52+
env:
53+
GITHUB_ACTIONS_OUTPUT: ""
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
browser: [chrome, firefox, jsc, spidermonkey, v8]
58+
steps:
59+
- name: Extract Week Number
60+
run: echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
61+
62+
- name: Checkout Branch
63+
uses: actions/checkout@v5
64+
65+
- name: Setup Node
66+
uses: actions/setup-node@v5
67+
with:
68+
node-version-file: package.json
69+
cache: npm
70+
71+
- name: Install Node Packages
72+
run: npm ci
73+
74+
- name: Cache jsvu Binaries
75+
uses: actions/cache@v4
76+
with:
77+
path: ~/.jsvu
78+
key: ${{ runner.os }}-jsvu-${{ matrix.browser }}-week-${{ env.WEEK_NUMBER }}
79+
80+
- name: Run Tests
81+
run: |
82+
echo "Running in $BROWSER"
83+
npm run test:${{ matrix.browser }}
84+
5385
build:
5486
name: Build
5587
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)