👷 component test deployment configuration

This commit is contained in:
Paul Valerie GOMA 2025-07-17 15:56:55 +02:00
parent 4f8228e699
commit df2a860c18
2 changed files with 22 additions and 1 deletions

View File

@ -2,8 +2,28 @@ default:
image: node:latest
stages:
- test
- 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:
stage: deploy
script:

View File

@ -9,7 +9,8 @@
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build",
"lint": "eslint . --fix"
"lint": "eslint . --fix",
"test:unit": "vitest run --coverage"
},
"dependencies": {
"@cellule-financiere-pmo/visua": "^1.1.0",