-
Notifications
You must be signed in to change notification settings - Fork 5
117 lines (115 loc) · 3.62 KB
/
playwright_pre_qase.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Penpot Regression Tests on PRE env Qase
on:
workflow_dispatch:
inputs:
qase_api_base_url:
description: 'Qase API URL'
required: true
qase_report:
description: 'Enabled/disabled reporting to Qase'
required: true
qase_project_code:
description: 'Qase project code'
required: true
qase_run_id:
description: 'Qase Run ID'
required: true
qase_run_complete:
description: 'Complete Qase Run'
required: true
env:
QASE_API_BASE_URL: ${{ inputs.qase_api_base_url }}
QASE_REPORT: ${{ inputs.qase_report }}
QASE_PROJECT_CODE: ${{ inputs.qase_project_code }}
QASE_RUN_ID: ${{ inputs.qase_run_id }}
QASE_RUN_COMPLETE: ${{ inputs.qase_run_complete }}
QASE_API_TOKEN: ${{ secrets.QASE_API_TOKEN }}
jobs:
tests_chromium:
environment: PRE
runs-on: windows-latest
steps:
- uses: qase-tms/qase-link-run@main
env:
QASE_API_TOKEN: ${{ env.QASE_API_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run regression tests for chromium
env:
BASE_URL: ${{ secrets.BASE_URL }}
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }}
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
run: npx playwright test --project=chrome -gv 'PERF'
- name: Upload Playwright Report
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report-chromium
path: playwright-report/
retention-days: 30
tests_firefox:
if: ${{ always() }}
needs: [tests_chromium]
environment: PRE
runs-on: windows-latest
steps:
- uses: qase-tms/qase-link-run@main
env:
QASE_API_TOKEN: ${{ env.QASE_API_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run regression tests for firefox
env:
BASE_URL: ${{ secrets.BASE_URL }}
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }}
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
run: npx playwright test --project=firefox -gv 'PERF'
- name: Upload Playwright Report
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report-firefox
path: playwright-report/
retention-days: 30
tests_webkit:
if: ${{ always() }}
needs: [tests_chromium, tests_firefox]
environment: PRE
runs-on: windows-latest
steps:
- uses: qase-tms/qase-link-run@main
env:
QASE_API_TOKEN: ${{ env.QASE_API_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run regression tests for webkit
env:
BASE_URL: ${{ secrets.BASE_URL }}
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }}
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
run: npx playwright test --project=webkit -gv 'PERF'
- name: Upload Playwright Report
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report-webkit
path: playwright-report/
retention-days: 30