Add GitHub Action for running CI tests.

This commit is contained in:
David Anson 2019-12-01 22:05:28 -08:00 committed by GitHub
parent 3e91da338c
commit 3cd7457fb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
.github/workflows/nodejs.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Node.js CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install --no-package-lock
- name: Run Tests
run: npm run ci