Skip to content

Commit c39c7a2

Browse files
committed
chore(FON-000): bumps pnpm to version 11
1 parent 9159177 commit c39c7a2

18 files changed

Lines changed: 2626 additions & 4840 deletions

File tree

.github/workflows/build-api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
3636
with:
37-
version: 10
37+
version: 11
3838
run_install: false
3939

4040
- name: Use Node.js

.github/workflows/build-client.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
3030
with:
31-
version: 10
31+
version: 11
3232
run_install: false
3333

3434
- name: Use Node.js
@@ -37,6 +37,10 @@ jobs:
3737
node-version: '24.12.0'
3838
cache: 'pnpm'
3939

40+
- name: install sheetjs
41+
shell: bash
42+
run: ./scripts/sheetjs.sh
43+
4044
- name: Install dependencies
4145
run: pnpm install --frozen-lockfile --ignore-scripts
4246

.github/workflows/integration-checks.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
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
@@ -91,7 +94,27 @@ jobs:
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

.github/workflows/migrate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
4444
if: steps.changed-files.outputs.any_changed == 'true'
4545
with:
46-
version: 10
46+
version: 11
4747
run_install: false
4848

4949
- name: Use Node.js

.github/workflows/warm-playwright-cache.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
2323
with:
24-
version: 10
24+
version: 11
2525
run_install: false
2626

2727
- name: Use Node.js
@@ -30,6 +30,10 @@ jobs:
3030
node-version: '24.12.0'
3131
cache: 'pnpm'
3232

33+
- name: install sheetjs
34+
shell: bash
35+
run: ./scripts/sheetjs.sh
36+
3337
- name: Install dependencies
3438
run: pnpm install --frozen-lockfile --ignore-scripts
3539

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ generated
1414
coverage
1515

1616
.DS_Store
17-
.pnpm-store
17+
.pnpm-store
18+
19+
/vendor/*.tgz
20+
.hash

apps/api/.env.e2e

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
DATABASE_URL=postgresql://fondation:secret@localhost:5435/fondation_test
2-
E2E_API_TOKEN=FthDG8SXXzWD6eOzybymzXh1bHqHepZG
2+
E2E_API_TOKEN=FthDG8SXXzWD6eOzybymzXh1bHqHepZG
3+
NODE_OPTIONS=--experimental-vm-modules

apps/api/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"sax": "^1.4.4",
6060
"shared-models": "workspace:*",
6161
"unzipper": "^0.12.3",
62+
"xlsx": "file:../../vendor/xlsx-0.20.3.tgz",
6263
"zod": "catalog:"
6364
},
6465
"devDependencies": {

apps/api/src/modules/docs/infrastructure/services/renderers/pdf/pdf-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default async function renderPdf(html: string): Promise<Uint8Array> {
1515
const b = await getBrowser();
1616
const page = await b.newPage();
1717
try {
18-
await page.setContent(html, { waitUntil: 'networkidle0' });
18+
await page.setContent(html);
1919
const buffer = await page.pdf({
2020
format: 'A4',
2121
printBackground: true,

apps/api/src/modules/framework/files/multipart/multipart.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async function toMultipartFile(props: {
192192
const path = props.destination({
193193
id,
194194
mimetype: mimeType,
195-
request: props.request,
195+
request: props.request as Omit<ExpressRequest, 'params'> & { params: Record<string, string> },
196196
originalname: props.file.originalname,
197197
});
198198
const multipartFile = new MultipartFile({

0 commit comments

Comments
 (0)