:ci: Ajout du .gitlab-ci.yml
This commit is contained in:
1 parent
6bba70277c
commit
e6c55f57d7
1 file changed
+30
@@ -0,0 +1,30 @@
|
||||
# CI/CD LogAiBack (API Express + Prisma)
|
||||
image: node:22
|
||||
|
||||
default:
|
||||
tags:
|
||||
- runner
|
||||
|
||||
stages:
|
||||
- install
|
||||
- check
|
||||
|
||||
cache:
|
||||
key:
|
||||
files:
|
||||
- package-lock.json
|
||||
paths:
|
||||
- node_modules/
|
||||
|
||||
install:
|
||||
stage: install
|
||||
script:
|
||||
- npm ci
|
||||
|
||||
typecheck:
|
||||
stage: check
|
||||
needs:
|
||||
- install
|
||||
script:
|
||||
- npx prisma generate
|
||||
- npx tsc --noEmit
|
||||
Reference in new issue
Block a user