Merge pull request #15 from Ablu/ci

Github action CI
This commit is contained in:
Marvin Blum
2020-12-16 18:42:49 +01:00
committed by GitHub

23
.github/workflows/npm-test.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Node.js CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
env:
CI: true