Skip to content

Commit 72272ae

Browse files
committed
ci(hello-world): add playwright testing
1 parent 181c0f1 commit 72272ae

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/playwright.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,27 @@ jobs:
212212
name: playwright-report-${{ matrix.package }}
213213
path: packages/${{ matrix.package }}/typescript/playwright-report/
214214
retention-days: 30
215+
216+
test-hello-world-example:
217+
defaults:
218+
run:
219+
working-directory: ./examples/hello-world
220+
timeout-minutes: 60
221+
runs-on: ubuntu-24.04
222+
steps:
223+
- uses: actions/checkout@v4
224+
- uses: actions/setup-node@v4
225+
with:
226+
node-version: lts/*
227+
- name: Install dependencies
228+
run: npm install
229+
- name: Install Playwright Browsers
230+
run: npx playwright install --with-deps
231+
- name: Run Playwright tests
232+
run: npm run test
233+
- uses: actions/upload-artifact@v4
234+
if: ${{ !cancelled() }}
235+
with:
236+
name: playwright-report-hello-world
237+
path: playwright-report/
238+
retention-days: 30

0 commit comments

Comments
 (0)