5656
5757 - uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
5858 with :
59- version : 10
59+ version : 11
6060 run_install : false
6161
6262 - name : Use Node.js
@@ -65,18 +65,21 @@ jobs:
6565 node-version : ' 24.12.0'
6666 cache : ' pnpm'
6767
68+ - name : install sheetjs
69+ shell : bash
70+ run : ./scripts/sheetjs.sh
71+
6872 - name : Install dependencies
6973 run : pnpm install --frozen-lockfile --ignore-scripts
7074
7175 - name : Build the shared models
7276 run : pnpm --filter shared-models build
7377
7478 - name : Migrate Prisma
75- run : pnpm run --filter api prisma migrate deploy
79+ run : pnpm --filter api exec prisma migrate deploy
7680
7781 - name : Generate prisma
78- run : pnpm --filter api prisma generate --generator client --sql --config
79- prisma.config.ts
82+ run : pnpm --filter api exec prisma generate --generator client --sql --config prisma.config.ts
8083
8184 - name : Types check
8285 run : pnpm types:check
9194 run : node apps/api/scripts/init-buckets.js
9295
9396 - name : Test Api
94- run : pnpm --filter api test:all
97+ run : pnpm --filter api exec jest --runInBand --config ./test/jest/jest-all.config.ts
98+
99+ - name : truncate db
100+ shell : bash
101+ run : |
102+ echo -n '' > truncate.sql
103+ for table in \
104+ '"identity_and_access_context"."users"' \
105+ '"data_administration_context"."jurisdictions"' \
106+ '"data_administration_context"."function"' \
107+ '"nominations_context"."magistrat"' \
108+ '"nominations_context"."session"' \
109+ '"reports_context"."reports"' \
110+ '"files_context"."files"' \
111+ '"jobs"."ingestion_job"' \
112+ '"docs"."agenda"'
113+ do
114+ echo "TRUNCATE $table CASCADE;" >> truncate.sql
115+ done
116+
117+ pnpm --filter api exec prisma db execute --url $DATABASE_URL --file ./truncate.sql
95118
96119 - name : Install Playwright
97120 uses : ./.github/playwright
0 commit comments