Skip to content

Commit d5e9768

Browse files
pnpm support
1 parent 77471e8 commit d5e9768

8 files changed

Lines changed: 18452 additions & 28035 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16+
- uses: pnpm/action-setup@v2
1617
- name: Use Node.js
1718
uses: actions/setup-node@v3
1819
with:
1920
node-version: '20.x'
21+
cache: 'pnpm'
2022
- name: Install dependencies (server)
21-
run: npm ci
23+
run: pnpm install
2224
- name: Install biome linux-x64 (server)
2325
run: npm install --save-dev @biomejs/cli-linux-x64 || true
2426
- name: Lint (server)
@@ -31,12 +33,14 @@ jobs:
3133
runs-on: ubuntu-latest
3234
steps:
3335
- uses: actions/checkout@v3
36+
- uses: pnpm/action-setup@v2
3437
- name: Use Node.js
3538
uses: actions/setup-node@v3
3639
with:
3740
node-version: '20.x'
41+
cache: 'pnpm'
3842
- name: Install dependencies (server)
39-
run: npm ci
43+
run: pnpm install
4044
- name: Run database tests (server)
4145
run: npm run test:ci:firestore
4246

@@ -56,12 +60,14 @@ jobs:
5660
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
5761
steps:
5862
- uses: actions/checkout@v3
63+
- uses: pnpm/action-setup@v2
5964
- name: Use Node.js
6065
uses: actions/setup-node@v3
6166
with:
6267
node-version: '20.x'
68+
cache: 'pnpm'
6369
- name: Install dependencies (server)
64-
run: npm ci
70+
run: pnpm install
6571
- name: Run database tests (server)
6672
run: npm run test:ci:postgres
6773

@@ -77,12 +83,14 @@ jobs:
7783
--health-cmd "mongosh --eval 'db.runCommand({serverStatus:1})' --quiet" --health-interval 10s --health-timeout 5s --health-retries 5
7884
steps:
7985
- uses: actions/checkout@v3
86+
- uses: pnpm/action-setup@v2
8087
- name: Use Node.js
8188
uses: actions/setup-node@v3
8289
with:
8390
node-version: '20.x'
91+
cache: 'pnpm'
8492
- name: Install dependencies (server)
85-
run: npm ci
93+
run: pnpm install
8694
- name: Run database tests (server)
8795
run: npm run test:ci:mongo
8896

@@ -91,14 +99,14 @@ jobs:
9199

92100
steps:
93101
- uses: actions/checkout@v3
94-
102+
- uses: pnpm/action-setup@v2
95103
- name: Use Node.js
96104
uses: actions/setup-node@v3
97105
with:
98106
node-version: '20.x'
99-
107+
cache: 'pnpm'
100108
- name: Install root dependencies
101-
run: npm ci
109+
run: pnpm install
102110

103111
- name: Install dependencies (frontend)
104112
working-directory: ./frontend

.github/workflows/integration_tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,21 @@ jobs:
2626
echo "PR is not ready to merge"
2727
echo "ready_to_merge=false" >> $GITHUB_OUTPUT
2828
fi
29-
29+
- uses: pnpm/action-setup@v2
3030
- name: Use Node.js
3131
if: steps.check_pr.outputs.ready_to_merge == 'true'
3232
uses: actions/setup-node@v3
3333
with:
3434
node-version: '20.x'
35+
cache: 'pnpm'
3536

3637
- name: Install dependencies (server)
3738
if: steps.check_pr.outputs.ready_to_merge == 'true'
38-
run: npm install
39+
run: pnpm install
3940

4041
- name: Run integration tests (server)
4142
if: steps.check_pr.outputs.ready_to_merge == 'true'
42-
run: npm run test:integration
43+
run: pnpm run test:integration
4344

4445
# - name: Install dependencies (frontend)
4546
# if: steps.check_pr.outputs.ready_to_merge == 'true'

.github/workflows/playwright.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version: lts/*
16+
cache: 'pnpm'
1617
- name: Install dependencies
17-
run: npm ci
18+
run: pnpm install
1819
# - name: Install Playwright Browsers
1920
# run: npx playwright install --with-deps
2021
# - name: Run Playwright tests

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##!/usr/bin/bash
2-
npm run lint:ci && npm run build
2+
pnpm run lint:ci && pnpm run build
33
#
44
#echo "🔍 Running pre-commit linting..."
55
#

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/bash
2-
npm run lint:ci && npm test
2+
pnpm run lint:ci && pnpm run test

0 commit comments

Comments
 (0)