Skip to content

Commit 6c737a9

Browse files
committed
Update playwright.yml
1 parent 5b9eeaf commit 6c737a9

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/playwright.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,29 @@ on:
77
jobs:
88
test:
99
timeout-minutes: 60
10-
runs-on: windows-latest
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
- uses: pnpm/action-setup@v2
14+
with:
15+
version: 9
1316
- uses: actions/setup-node@v4
1417
with:
15-
node-version: 18
18+
node-version: 20
19+
cache: 'pnpm'
1620
- name: Install dependencies
17-
run: npm ci
21+
run: pnpm install
1822
- name: Install Playwright Browsers
19-
run: npx playwright install --with-deps
23+
run: pnpm exec playwright install --with-deps chromium firefox
24+
- name: Build the project
25+
run: pnpm build
26+
- name: Start the application
27+
run: pnpm start &
28+
- name: Wait for the application to be ready
29+
run: |
30+
npx wait-on http://localhost:3000
2031
- name: Run Playwright tests
21-
run: npx playwright test
22-
env:
23-
CI: true
24-
NEXT_PUBLIC_GRAPHQL_URL: ${{ secrets.NEXT_PUBLIC_GRAPHQL_URL }}
32+
run: pnpm exec playwright test
2533
- uses: actions/upload-artifact@v4
2634
if: always()
2735
with:

0 commit comments

Comments
 (0)