Skip to content

Commit

Permalink
feat: generate typedsql in tests and docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcath committed Aug 27, 2024
1 parent e7e0675 commit 3c87235
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
node-modules-${{ hashFiles('package-lock.json',
'prisma/schema.prisma') }}

- name: ⁉️ Generate Typed SQL
run: npx prisma generate --sql

- name: 🔬 Lint
run: npm run lint

Expand Down Expand Up @@ -112,6 +115,9 @@ jobs:
node-modules-${{ hashFiles('package-lock.json',
'prisma/schema.prisma') }}

- name: ⁉️ Generate Typed SQL
run: npx prisma generate --sql

- name: 🔎 Type check
run: npm run typecheck

Expand Down Expand Up @@ -179,6 +185,9 @@ jobs:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: npx prisma migrate dev

- name: ⁉️ Generate Typed SQL
run: npx prisma generate --sql

- name: 🧪 Test
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"start:remix": "remix-serve ./build/server/index.js",
"start:worker": "node ./worker/worker.mjs",
"typecheck": "tsc",
"docker": "prisma migrate deploy && prisma generate && prisma db seed && npm-run-all -p start:*",
"docker": "prisma migrate deploy && prisma generate --sql && prisma db seed && npm-run-all -p start:*",
"prettier": "prettier app --check --end-of-line auto",
"test": "env-cmd -f .test.env vitest",
"test:coverage": "env-cmd -f .test.env vitest run --coverage",
Expand Down

0 comments on commit 3c87235

Please sign in to comment.