Skip to content

Refactor

Refactor #174

Workflow file for this run

name: npm test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
node-version:
- 20
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Setup xvfb for ubuntu
run: Xvfb :99 -screen 0 1024x768x24 > /dev/null &
if: matrix.os == 'ubuntu-latest'
- uses: actions/checkout@v2
- name: Use node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run lint --if-present
if: matrix.os == 'ubuntu-latest'
- run: npm test
env:
CI: true
DISPLAY: :99.0