-
Notifications
You must be signed in to change notification settings - Fork 112
47 lines (40 loc) · 1.09 KB
/
ui-test.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
name: UI Tests
on: [push, pull_request]
jobs:
ui_test:
name: UI Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ps-version:
- '8.0.5'
- '8.1.3'
- 'nightly'
env:
PS_VERSION: ${{ matrix.ps-version }}
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Build
run: npm install && npm run build
- name: Start containers
run: docker-compose -f "tests/UI/docker-compose.yml" up -d --build
- name: Install dependencies
run: npm ci
working-directory: tests/UI/
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: tests/UI/
- name: Run Playwright tests
run: npx playwright test
working-directory: tests/UI/
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: tests/UI/reports/
retention-days: 30