Skip to content

Commit e831674

Browse files
committed
fix it
1 parent 556d9d5 commit e831674

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/actions/install-playwright/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
browsers:
55
description: 'What browsers to install.'
66
default: 'chromium webkit firefox'
7+
cwd:
8+
description: 'The working directory to run Playwright in.'
9+
default: '.'
710

811
runs:
912
using: "composite"
@@ -26,11 +29,13 @@ runs:
2629
run: npx playwright install chromium webkit firefox --with-deps
2730
if: steps.playwright-cache.outputs.cache-hit != 'true'
2831
shell: bash
32+
working-directory: ${{ inputs.cwd }}
2933

3034
- name: Install Playwright system dependencies only (cached)
3135
run: npx playwright install-deps ${{ inputs.browsers || 'chromium webkit firefox' }}
3236
if: steps.playwright-cache.outputs.cache-hit == 'true'
3337
shell: bash
38+
working-directory: ${{ inputs.cwd }}
3439

3540
# Only store cache on develop branch
3641
- name: Store cached playwright binaries

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ jobs:
944944
uses: ./.github/actions/install-playwright
945945
with:
946946
browsers: chromium
947-
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
947+
cwd: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
948948

949949
- name: Run E2E test
950950
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
@@ -1064,7 +1064,7 @@ jobs:
10641064
uses: ./.github/actions/install-playwright
10651065
with:
10661066
browsers: chromium
1067-
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
1067+
cwd: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
10681068

10691069
- name: Run E2E test
10701070
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}

0 commit comments

Comments
 (0)