Skip to content

[pre-commit.ci] pre-commit autoupdate #32

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #32

Workflow file for this run

---
name: Tests
# Automatically cancel a previous run.
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: xvfb-run -a npm test
if: runner.os == 'Linux'
- name: Run tests
run: npm test
if: runner.os != 'Linux'