Skip to content

Commit

Permalink
Fix: Add prisma initialization script
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Hoplin committed Jan 1, 2024
1 parent 152288e commit af6f48f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ jobs:
run: npm install --force
- name: Install dotenv-cli for dotenv cli
run: npm install -g dotenv-cli
- name: Initialize Prisma Client
run: npm run ci:init
- name: Run Unit Test
run: npm run ci:unit
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"ci:unit": "dotenv -e .ci.env -- npx prisma db push && jest --setupFiles jest --config ./test/jest-unit.json --runInBand",
"ci:e2e": "dotenv -e .ci.env -- npx prisma db push && jest --config ./test/jest-e2e.json --runInBand",
"test:e2e": "dotenv -e .test.env -- npx prisma db push && jest --config ./test/jest-e2e.json --runInBand",
"test:unit": "dotenv -e .test.env -- npx prisma db push && jest --setupFiles jest --config ./test/jest-unit.json --runInBand"
"ci:init": "dotenv -e .ci.env -- npx prisma generate",
"ci:unit": "dotenv -e .ci.env -- jest --setupFiles jest --config ./test/jest-unit.json --runInBand",
"ci:e2e": "dotenv -e .ci.env -- jest --config ./test/jest-e2e.json --runInBand",
"test:init": "dotenv -e .test.env -- npx prisma generate",
"test:e2e": "dotenv -e .test.env -- jest --config ./test/jest-e2e.json --runInBand",
"test:unit": "dotenv -e .test.env -- jest --setupFiles jest --config ./test/jest-unit.json --runInBand"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.465.0",
Expand Down

0 comments on commit af6f48f

Please sign in to comment.