Skip to content
Snippets Groups Projects
Verified Commit 37805fd7 authored by Loïs Poujade's avatar Loïs Poujade
Browse files

Init gitlab ci

- don't ignore package-lock.json as its needed for test (via npm ci)
- added jest-junit for proper gitlab integration
parent d3ad9ff3
Branches
No related tags found
No related merge requests found
......@@ -5,4 +5,3 @@
/node_modules
/umd
npm-debug.log*
package-lock.json
upstream_tests:
image: docker.io/node:current
before_script:
- npm ci
script:
- npm run test:ci
artifacts:
when: always
paths:
- junit.xml
reports:
junit: junit.xml
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -18,7 +18,8 @@
"start": "nwb serve-react-demo",
"test": "npm run lint && jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"test:ci": "jest --ci --reporters=default --reporters=jest-junit --watchAll=false"
},
"dependencies": {
"@psychobolt/react-paperjs": "< 1.0",
......@@ -61,6 +62,7 @@
"eslint-plugin-react": "^7.20.3",
"jest": "^26.1.0",
"jest-canvas-mock": "^2.2.0",
"jest-junit": "^15.0.0",
"jest-localstorage-mock": "^2.4.2",
"mirador": "^3.0.0-rc.5",
"nwb": "^0.24.7",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment