add test ci script
This commit is contained in:
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
stages:
|
||||
- test
|
||||
|
||||
unit-test:
|
||||
image: node:latest
|
||||
stage: test
|
||||
before_script:
|
||||
- npm install
|
||||
script:
|
||||
- npm run test-ci
|
||||
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
|
||||
artifacts:
|
||||
paths:
|
||||
- coverage/
|
||||
when: always
|
||||
reports:
|
||||
junit:
|
||||
- junit.xml
|
||||
Reference in New Issue
Block a user