Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Shell Tests #42

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
31 changes: 24 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,39 @@ jobs:
build:
name: Build
runs-on: macos-latest
env:
GITHUB_ACTIONS_OUTPUT: ""
strategy:
matrix:
browser: [chrome, firefox, safari]
# FIXME: enable jsc again once caching is working.
browser: [chrome, firefox, safari, spidermonkey, v8]
steps:
- name: Extract Week Number
run: echo "WEEK_NUMBER=$(date +%W)" >> $GITHUB_ENV

- name: Install Firefox
if: ${{ matrix.browser == 'firefox' }}
run: brew install --cask firefox

- name: Checkout Branch
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.13.0
- name: Install
run: npm install
- name: Run tests
node-version-file: package.json
cache: npm

- name: Install Node Packages
run: npm ci

- name: Cache jsvu Binaries
uses: actions/cache@v4
with:
path: ~/.jsvu
key: ${{ runner.os }}-jsvu-${{ matrix.browser }}-week-${{ env.WEEK_NUMBER }}

- name: Run Tests
run: |
echo "Running in $BROWSER"
npm run test:${{ matrix.browser }}
Loading
Loading