👷 component test deployment configuration
This commit is contained in:
parent
4f8228e699
commit
df2a860c18
|
@ -2,8 +2,28 @@ default:
|
||||||
image: node:latest
|
image: node:latest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm ci
|
||||||
|
|
||||||
|
unit-tests:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npm run test:unit
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- coverage/
|
||||||
|
expire_in: 1 month
|
||||||
|
only:
|
||||||
|
- branches
|
||||||
|
- merge_requests
|
||||||
|
|
||||||
publish-npm:
|
publish-npm:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build-only": "vite build",
|
"build-only": "vite build",
|
||||||
"type-check": "vue-tsc --build",
|
"type-check": "vue-tsc --build",
|
||||||
"lint": "eslint . --fix"
|
"lint": "eslint . --fix",
|
||||||
|
"test:unit": "vitest run --coverage"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cellule-financiere-pmo/visua": "^1.1.0",
|
"@cellule-financiere-pmo/visua": "^1.1.0",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user