Create ci.yml

Add GitHub CI Action for testing purposes.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
pull/254/head
Jerome Luckenbach 2021-03-28 22:28:16 +02:00 committed by GitHub
parent 8f3f597880
commit 09feb11cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

32
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,32 @@
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'