Skip to content

Commit 3661217

Browse files
committed
added .github workflows
1 parent 7087053 commit 3661217

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run Playwright
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
jobs:
9+
playwright-demo-tests:
10+
timeout-minutes: 60
11+
runs-on: ubuntu-latest
12+
permissions:
13+
checks: write
14+
pull-requests: write
15+
steps:
16+
- uses: actions/checkout@v6
17+
name: Get test project from version control
18+
- uses: actions/setup-node@v6
19+
name: Setup NodeJS 20
20+
with:
21+
node-version: 20
22+
- name: Install dependencies
23+
run: npm install
24+
- name: Install Playwright Browsers
25+
run: npx playwright install --with-deps
26+
- name: Run the tests
27+
run: npx playwright test
28+
- uses: actions/upload-artifact@v4
29+
name: Publish HTML test report for download
30+
if: ${{ !cancelled() }}
31+
with:
32+
name: playwright-report
33+
path: playwright-report/
34+
retention-days: 30

0 commit comments

Comments
 (0)