Skip to content

Commit d6ea417

Browse files
Fix Playwright workflow to run from Tests/AngularNetTutorial-Playwright submodule
1 parent ae2229c commit d6ea417

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,33 @@ on:
44
branches: [ main, master ]
55
pull_request:
66
branches: [ main, master ]
7+
8+
env:
9+
PLAYWRIGHT_DIR: 'Tests/AngularNetTutorial-Playwright'
10+
711
jobs:
812
test:
913
timeout-minutes: 60
1014
runs-on: ubuntu-latest
1115
steps:
1216
- uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
1319
- uses: actions/setup-node@v4
1420
with:
1521
node-version: lts/*
1622
- name: Install dependencies
23+
working-directory: ${{ env.PLAYWRIGHT_DIR }}
1724
run: npm ci
1825
- name: Install Playwright Browsers
26+
working-directory: ${{ env.PLAYWRIGHT_DIR }}
1927
run: npx playwright install --with-deps
2028
- name: Run Playwright tests
29+
working-directory: ${{ env.PLAYWRIGHT_DIR }}
2130
run: npx playwright test
2231
- uses: actions/upload-artifact@v4
2332
if: ${{ !cancelled() }}
2433
with:
2534
name: playwright-report
26-
path: playwright-report/
35+
path: ${{ env.PLAYWRIGHT_DIR }}/playwright-report/
2736
retention-days: 30

0 commit comments

Comments
 (0)