File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments