Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit 4a7f0e0

Browse files
authored
Create workflow (Github Actions) to run tests automatically (#18)
* create workflow to run tests Use Github Actions to kick-off unit tests when we submit new commits on a pull request * test new workflow * delete comment * rename workflow * delete unecessary action files * fix workflow * specify node version
1 parent 93d6576 commit 4a7f0e0

File tree

4 files changed

+29
-32
lines changed

4 files changed

+29
-32
lines changed

.github/main.workflow

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
workflow "check" {
2+
on = "push"
3+
resolves = "test"
4+
}
5+
6+
action "install" {
7+
uses = "docker://node:10.15.3"
8+
args = "npm install"
9+
}
10+
11+
action "test" {
12+
uses = "docker://node:10.15.3"
13+
args = "npm test"
14+
needs = ["install"]
15+
}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v10.15.3

package-lock.json

Lines changed: 12 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "./node_modules/.bin/rollup -c",
88
"dev": "./node_modules/.bin/rollup -cw --environment DEV & ./node_modules/.bin/http-server",
9-
"test": "jest"
9+
"test": "./node_modules/jest/bin/jest.js"
1010
},
1111
"author": "",
1212
"license": "MIT",

0 commit comments

Comments
 (0)