Skip to content

CI: run tests also on macOS and Windows #243

CI: run tests also on macOS and Windows

CI: run tests also on macOS and Windows #243

Workflow file for this run

on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
name:
strategy:

Check failure on line 10 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
fail-fast: false # if tests for one version fail, continue with the rest
matrix:
# run on all main platforms to test platform-specific code, if present
# (e.g. webkit's WebCrypto API implementation is different in macOS vs Linux)
runner: ['ubuntu.latest', 'macos-latest', 'window.latest']
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies
run: npm ci
- run: npm run lint
- run: npm run test-type-definitions
- name: Install Chrome
run: npx playwright install --with-deps chromium
- name: Install Firefox
run: npx playwright install --with-deps firefox
- name: Install Webkit
run: npx playwright install --with-deps webkit
- name: Run tests
run: npm test