ci: adding simple workflow

This commit is contained in:
Michael Shick 2020-05-21 17:30:21 -04:00
parent 81c7cad365
commit c03114a108
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61
7 changed files with 175 additions and 11 deletions

30
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: CI
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install dependencies
run: |
npm ci
- name: Lint code
run: |
npm run lint
- name: Run tests
run: |
npm test