-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.29 KB
/
web-tests.yml
File metadata and controls
58 lines (49 loc) · 1.29 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
52
53
54
55
56
57
58
name: Web UI Tests
on:
push:
branches: [ main, develop ]
paths:
- 'src/web/**'
- 'tests/web/**'
- 'playwright.config.ts'
pull_request:
paths:
- 'src/web/**'
- 'tests/web/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
browser: [chromium, firefox, webkit]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps ${{ matrix.browser }}
- name: Run Playwright tests
run: npm run test:web
env:
BROWSER: ${{ matrix.browser }}
WEB_BASE_URL: http://localhost:8080
CI: true
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: playwright-report-${{ matrix.browser }}
path: |
playwright-report/
test-results/
- name: Upload Playwright traces
if: failure()
uses: actions/upload-artifact@v3
with:
name: playwright-traces-${{ matrix.browser }}
path: test-results/