Setup GitHub action for running tests (#39)

This commit is contained in:
Mateusz Burzyński
2020-07-06 20:34:25 +10:00
committed by GitHub
parent 2c7afd615c
commit a56ea2d6eb
2 changed files with 25 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
name: Node CI
on: [push]
jobs:
build:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: yarn
- name: Test
run: yarn test
+2 -1
View File
@@ -13,7 +13,8 @@
},
"scripts": {
"build": "parcel build ./src/index.ts --no-source-maps --target=node --bundle-node-modules",
"test:watch": "jest --watch"
"test": "jest",
"test:watch": "yarn test --watch"
},
"dependencies": {
"@actions/core": "^1.2.4",