test ci --check

This commit is contained in:
Gsk54 2023-01-09 16:40:31 +01:00
parent fe24afb712
commit 7b9d2940c2
2 changed files with 8 additions and 1 deletions

5
ci/.env.ci Normal file
View File

@ -0,0 +1,5 @@
# PRISMA
DATABASE_URL="postgresql://user:user@v3-user-db-test:5432/user?schema=public"
# POSTGRES
POSTGRES_IMAGE=postgres:15.0

View File

@ -15,12 +15,14 @@
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "npm run migrate-test && dotenv -e .env.test jest",
"test:ci": "npm run migrate-test-ci && dotenv -e ci/.env.ci jest",
"test:unit": "jest --testPathIgnorePatterns 'integration' --verbose",
"test:integration": "npm run migrate-test && dotenv -e .env.test -- jest --testPathPattern 'integration' --verbose",
"test:cov": "npm run migrate-test && dotenv -e .env.test -- jest --coverage",
"test:e2e": "jest --config ./test/jest-e2e.json",
"migrate": "docker exec v3-user sh -c 'npx prisma migrate dev'",
"migrate-test": "dotenv -e .env.test -- npx prisma migrate dev --name postgres-init"
"migrate-test": "dotenv -e .env.test -- npx prisma migrate dev --name postgres-init",
"migrate-test-ci": "dotenv -e ci/.env.ci -- npx prisma migrate dev --name postgres-init"
},
"dependencies": {
"@automapper/classes": "^8.7.7",