Skip to content

Commit bbcfe51

Browse files
authored
Merge pull request #42 from camillobruni/2025-01-28_cli_tests
Add Shell Tests
2 parents dd08c17 + b52131f commit bbcfe51

File tree

4 files changed

+1844
-40
lines changed

4 files changed

+1844
-40
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,38 @@ jobs:
1313
build:
1414
name: Build
1515
runs-on: macos-latest
16+
env:
17+
GITHUB_ACTIONS_OUTPUT: ""
1618
strategy:
1719
matrix:
18-
browser: [chrome, firefox, safari]
20+
browser: [chrome, firefox, jsc, safari, spidermonkey, v8]
1921
steps:
22+
- name: Extract Week Number
23+
run: echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV
24+
2025
- name: Install Firefox
2126
if: ${{ matrix.browser == 'firefox' }}
2227
run: brew install --cask firefox
28+
2329
- name: Checkout Branch
24-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
31+
2532
- name: Setup Node
26-
uses: actions/setup-node@v3
33+
uses: actions/setup-node@v4
2734
with:
28-
node-version: 18.13.0
29-
- name: Install
30-
run: npm install
31-
- name: Run tests
35+
node-version-file: package.json
36+
cache: npm
37+
38+
- name: Install Node Packages
39+
run: npm ci
40+
41+
- name: Cache jsvu Binaries
42+
uses: actions/cache@v4
43+
with:
44+
path: ~/.jsvu
45+
key: ${{ runner.os }}-jsvu-${{ matrix.browser }}-week-${{ env.WEEK_NUMBER }}
46+
47+
- name: Run Tests
3248
run: |
3349
echo "Running in $BROWSER"
3450
npm run test:${{ matrix.browser }}

0 commit comments

Comments
 (0)