Skip to content

Commit dd00755

Browse files
committed
feat: increase timeout for integration and unit tests, add Prisma client generation step
1 parent 4a53b3d commit dd00755

4 files changed

Lines changed: 32 additions & 5 deletions

File tree

.github/workflows/trpc-integration-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
trpc-tests:
1515
runs-on: ubuntu-latest
16-
timeout-minutes: 15
16+
timeout-minutes: 25
1717

1818
services:
1919
postgres:
@@ -50,7 +50,10 @@ jobs:
5050
run: npm install -g "$(node -p 'require("./package.json").packageManager')" && npm --version
5151

5252
- name: Install dependencies
53-
run: npm ci
53+
run: npm ci --ignore-scripts
54+
55+
- name: Generate Prisma client
56+
run: npx prisma generate
5457

5558
- name: Run database migrations
5659
run: npx prisma migrate deploy

.github/workflows/unit-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
unit-tests:
1515
name: Transaction builder unit tests
1616
runs-on: ubuntu-latest
17-
timeout-minutes: 10
17+
timeout-minutes: 20
1818

1919
steps:
2020
- name: Checkout repository
@@ -29,7 +29,10 @@ jobs:
2929
run: npm install -g "$(node -p 'require("./package.json").packageManager')" && npm --version
3030

3131
- name: Install dependencies
32-
run: npm ci
32+
run: npm ci --ignore-scripts
33+
34+
- name: Generate Prisma client
35+
run: npx prisma generate
3336

3437
- name: Run transaction builder tests
3538
run: npm run test:ci -- --testPathPatterns="src/__tests__/tx-builders"

Dockerfile.ci

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ COPY prisma ./prisma
2626
COPY prisma.config.ts ./
2727
RUN npm install -g "$(node -p 'require("./package.json").packageManager')" \
2828
&& npm --version
29-
RUN npm ci
29+
RUN npm ci --ignore-scripts
30+
RUN npx prisma generate
3031

3132
# Copy full source for containerized CI runs.
3233
COPY . .

package-lock.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)