👷 component test deployment configuration
This commit is contained in:
parent
4f8228e699
commit
df2a860c18
|
@ -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:
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user