:ci: Ajout du .gitlab-ci.yml
This commit is contained in:
1 parent
c76856d376
commit
c6a3376317
1 file changed
+40
@@ -0,0 +1,40 @@
|
||||
# CI/CD LogAiFront (React + Vite)
|
||||
image: node:22
|
||||
|
||||
default:
|
||||
tags:
|
||||
- runner
|
||||
|
||||
stages:
|
||||
- install
|
||||
- check
|
||||
|
||||
cache:
|
||||
key:
|
||||
files:
|
||||
- package-lock.json
|
||||
paths:
|
||||
- node_modules/
|
||||
|
||||
install:
|
||||
stage: install
|
||||
script:
|
||||
- npm ci
|
||||
|
||||
lint:
|
||||
stage: check
|
||||
needs:
|
||||
- install
|
||||
script:
|
||||
- npm run lint
|
||||
|
||||
build:
|
||||
stage: check
|
||||
needs:
|
||||
- install
|
||||
script:
|
||||
- npm run build
|
||||
artifacts:
|
||||
paths:
|
||||
- dist/
|
||||
expire_in: 1 week
|
||||
Reference in new issue
Block a user