Skip to content

Commit 48f70c4

Browse files
committed
ci: use pnpm lockfile for node setup and installs
1 parent 77b8e6e commit 48f70c4

1 file changed

Lines changed: 24 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@ jobs:
5858
uses: actions/setup-node@v6
5959
with:
6060
node-version-file: ".tool-versions"
61-
cache: npm
62-
cache-dependency-path: frontend/package-lock.json
61+
cache: pnpm
62+
cache-dependency-path: frontend/pnpm-lock.yaml
63+
64+
- name: Enable Corepack
65+
run: corepack enable
6366

6467
- name: Install frontend dependencies for OpenAPI client verification
65-
run: npm ci
68+
run: pnpm install --frozen-lockfile
6669
working-directory: frontend
6770

6871
- name: Verify generated OpenAPI spec and client are up to date
@@ -83,32 +86,35 @@ jobs:
8386
uses: actions/setup-node@v6
8487
with:
8588
node-version-file: ".tool-versions"
86-
cache: npm
87-
cache-dependency-path: frontend/package-lock.json
89+
cache: pnpm
90+
cache-dependency-path: frontend/pnpm-lock.yaml
91+
92+
- name: Enable Corepack
93+
run: corepack enable
8894

8995
- name: Install dependencies
90-
run: npm ci
96+
run: pnpm install --frozen-lockfile
9197

9298
- name: Typecheck frontend
93-
run: npm run typecheck
99+
run: pnpm run typecheck
94100

95101
- name: Lint CSS with Stylelint
96102
run: pnpm dlx stylelint "**/*.css" || npx stylelint "**/*.css"
97103

98104
- name: Check formatting
99-
run: npm run format:check
105+
run: pnpm run format:check
100106

101107
- name: Audit dependencies
102108
run: npm audit --audit-level=moderate
103109

104110
- name: Run frontend tests
105-
run: npm run test:ci
111+
run: pnpm run test:ci
106112

107113
- name: Install Playwright Chromium
108-
run: npx playwright install --with-deps chromium
114+
run: pnpm exec playwright install --with-deps chromium
109115

110116
- name: Run frontend smoke test
111-
run: npm run test:e2e
117+
run: pnpm run test:e2e
112118

113119
docker-build-smoke-image:
114120
needs:
@@ -182,15 +188,18 @@ jobs:
182188
uses: actions/setup-node@v6
183189
with:
184190
node-version-file: ".tool-versions"
185-
cache: npm
186-
cache-dependency-path: frontend/package-lock.json
191+
cache: pnpm
192+
cache-dependency-path: frontend/pnpm-lock.yaml
193+
194+
- name: Enable Corepack
195+
run: corepack enable
187196

188197
- name: Install frontend dependencies
189-
run: npm ci
198+
run: pnpm install --frozen-lockfile
190199
working-directory: frontend
191200

192201
- name: Build frontend static assets
193-
run: npm run build
202+
run: pnpm run build
194203
working-directory: frontend
195204

196205
- name: Set up QEMU

0 commit comments

Comments
 (0)