Run tests on CI
This commit is contained in:
parent
2ed04034a4
commit
4e833e9264
2 changed files with 6 additions and 1 deletions
|
@ -12,3 +12,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Build Project
|
name: Build Project
|
||||||
command: npm run build
|
command: npm run build
|
||||||
|
|
||||||
|
run:
|
||||||
|
name: Run tests
|
||||||
|
command: npm test
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
"build": "ts-node index.ts",
|
"build": "ts-node index.ts",
|
||||||
"lint": "tsc --noEmit --project tsconfig.json && tslint --project tsconfig.json index.ts",
|
"lint": "tsc --noEmit --project tsconfig.json && tslint --project tsconfig.json index.ts",
|
||||||
"prettier": "prettier --write index.ts",
|
"prettier": "prettier --write index.ts",
|
||||||
"start": "http-server build/ -c-1"
|
"start": "http-server build/ -c-1",
|
||||||
|
"test": "npm run lint && npm run prettier -- --check"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Reference in a new issue