Add some test workflows

This commit is contained in:
Jonathan Clem
2020-02-27 17:36:45 -05:00
parent 38e3ffe4c6
commit ebe3cb13e0

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

@@ -0,0 +1,32 @@
on:
push: {branches: master}
pull_request: {branches: master}
jobs:
integration:
runs-on: ubuntu-latest
steps:
- name: output-set
uses: actions/github-script@master
with:
script: |
const core = require('@actions/core')
core.setOutput('result', 'test')
- run: |
if [[ "${{steps.output-set.outputs.result}}" != "test" ]]; then
exit 1
fi
jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with: {node-version: 13.x}
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
restore-keys: ${{runner.os}}-npm-
- run: npm ci
- run: npm test