From 7b9d2940c2e786e0967a59371e150cd1e7d9f477 Mon Sep 17 00:00:00 2001 From: Gsk54 Date: Mon, 9 Jan 2023 16:40:31 +0100 Subject: [PATCH] test ci --check --- ci/.env.ci | 5 +++++ package.json | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 ci/.env.ci diff --git a/ci/.env.ci b/ci/.env.ci new file mode 100644 index 0000000..0d1de4b --- /dev/null +++ b/ci/.env.ci @@ -0,0 +1,5 @@ +# PRISMA +DATABASE_URL="postgresql://user:user@v3-user-db-test:5432/user?schema=public" + +# POSTGRES +POSTGRES_IMAGE=postgres:15.0 diff --git a/package.json b/package.json index f5a1a8e..5a7638e 100644 --- a/package.json +++ b/package.json @@ -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",