-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.3 KB
/
playwright.yml
File metadata and controls
51 lines (46 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Playwright Tests
on:
push:
branches: [ main]
pull_request:
branches: [ main ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- name: Upload HTML report as Artifact
uses: actions/upload-artifact@v2
if: always()
with:
name: run-report
path: pw-report/
storeReports:
name: Store reports
needs: test
runs-on: ubuntu-latest
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
id: download
- name: Publish to external repo
if: always()
uses: peaceiris/actions-gh-pages@v3.7.3
with:
external_repository: fearlessly-dev/playwright.reports
publish_branch: gh-pages
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ${{steps.download.outputs.download-path}}
keep_files: true
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"