33 lines
599 B
YAML
33 lines
599 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
# Run the CI build for all relevant systems
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10.x
|
|
|
|
- run: npm install
|
|
|
|
- run: xvfb-run -a npm test
|
|
if: runner.os == 'Linux'
|
|
|
|
- run: npm test
|
|
if: runner.os != 'Linux'
|