Skip to content

Commit 8c24073

Browse files
committed
Add GH action test
1 parent 48dc8df commit 8c24073

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Run tests
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: 14
20+
- name: Install Dependencies
21+
run: npm install
22+
- name: Run tests
23+
run: npm run test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"tslint": "tslint -c tslint.json -p tsconfig.json",
88
"copyAssets": "node scripts/copy-static-assets.js",
99
"dev": "nodemon --exec 'npm run build' -i dist -e 'ts html'",
10-
"test": "echo \"Error: no test specified\" && exit 1"
10+
"test": "npm run build"
1111
},
1212
"keywords": [],
1313
"author": "Nick O'Leary <[email protected]>",

0 commit comments

Comments
 (0)