-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (43 loc) · 1.14 KB
/
playwright.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
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
schedule:
- cron: '0 23 * * 5' # Run at 23:00 UTC on Friday (20:00 GMT-3)
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
API_KEY: ${{ secrets.API_KEY }}
- name: Generate Allure Report
if: always()
run: npm run allure-report
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-test-results
path: test-results/
- uses: actions/upload-artifact@v4
if: always()
with:
name: allure-test-results
path: allure-report/
- name: Publish JUnit Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
with:
report_paths: 'junit-results/*.xml'