Skip to content

Commit ad554d6

Browse files
committed
ci(playwright): set working directory for hello example docker pull
1 parent 4193ca2 commit ad554d6

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/playwright.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,14 @@ jobs:
102102
node-version: '22'
103103
cache: pnpm
104104

105-
- name: Install Playwright Browsers
106-
run: pnpx playwright install --with-deps
107-
108105
- name: Install dependencies for itk-wasm
109106
run: pnpm install
110107
working-directory: packages/core/typescript/itk-wasm
111108

109+
- name: Install Playwright Browsers
110+
run: pnpm exec playwright install --with-deps
111+
working-directory: packages/core/typescript/itk-wasm
112+
112113
- name: Build itk-wasm
113114
run: |
114115
pnpm run --aggregate-output --filter itk-wasm build
@@ -177,9 +178,6 @@ jobs:
177178
- name: pnpm install
178179
run: pnpm install --frozen-lockfile
179180

180-
- name: Install Playwright Browsers
181-
run: pnpm exec playwright install --with-deps
182-
183181
- name: Build itk-wasm
184182
run: |
185183
pnpm run --aggregate-output --filter itk-wasm build
@@ -203,6 +201,10 @@ jobs:
203201
run: |
204202
pnpm run --aggregate-output --filter "@itk-wasm/${{ matrix.package }}-build" test:data:download
205203
204+
- name: Install Playwright Browsers
205+
working-directory: packages/${{ matrix.package }}/typescript
206+
run: pnpm exec playwright install --with-deps
207+
206208
- name: Run Playwright tests
207209
working-directory: packages/${{ matrix.package }}/typescript
208210
run: pnpm run test:browser
@@ -226,6 +228,7 @@ jobs:
226228
uses: jlumbroso/free-disk-space@main
227229

228230
- name: Pull latest Docker images
231+
working-directory: ./
229232
run: |
230233
./src/docker/pull.sh --no-debug
231234
@@ -241,9 +244,13 @@ jobs:
241244
- name: Build itk-wasm
242245
run: |
243246
pnpm run --aggregate-output --filter itk-wasm build
247+
244248
- name: Install dependencies
245249
run: pnpm install
246250

251+
- name: Build
252+
run: pnpm run build
253+
247254
- name: Install Playwright Browsers
248255
run: pnpm exec playwright install --with-deps
249256

0 commit comments

Comments
 (0)