Skip to content

Commit b861710

Browse files
committed
Integrate Playwright with GitHub Actions
1 parent 565444a commit b861710

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/playwright_auto.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Playwright Tests - Auto Trigger
2+
on:
3+
push:
4+
branches: [main, master]
5+
6+
jobs:
7+
test:
8+
timeout-minutes: 60
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: lts/*
15+
- name: Install dependencies
16+
run: npm ci
17+
- name: Install Playwright Browsers
18+
run: npx playwright install --with-deps
19+
- name: Run Playwright tests
20+
run: npx playwright test --grep PlaywrightWithGitHubActions
21+
- uses: actions/upload-artifact@v4
22+
if: ${{ !cancelled() }}
23+
with:
24+
name: playwright-report
25+
path: playwright-report/
26+
retention-days: 30

.github/workflows/playwright.yml renamed to .github/workflows/playwright_manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Playwright Tests
1+
name: Playwright Tests - Manual Trigger
22
on:
33
push:
44
branches: [main, master]

0 commit comments

Comments
 (0)