-
Notifications
You must be signed in to change notification settings - Fork 83
82 lines (69 loc) · 2.08 KB
/
visual-tests.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
name: Visual tests
on: pull_request
permissions:
contents: read
jobs:
lumo:
name: Lumo
runs-on: ubuntu-latest
if: github.repository_owner == 'vaadin'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Install Dependencies
run: yarn --frozen-lockfile --no-progress --non-interactive
- name: Visual tests
uses: nick-fields/retry@v2
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
with:
timeout_minutes: 20
retry_wait_seconds: 60
max_attempts: 3
command: yarn test:lumo
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: screenshots
path: |
packages/*/test/visual/lumo/screenshots/*/failed/*.png
packages/vaadin-lumo-styles/test/visual/screenshots/failed/*.png
material:
name: Material
runs-on: ubuntu-latest
if: github.repository_owner == 'vaadin'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Install Dependencies
run: yarn --frozen-lockfile --no-progress --non-interactive
- name: Visual tests
uses: nick-fields/retry@v2
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
with:
timeout_minutes: 20
retry_wait_seconds: 60
max_attempts: 3
command: yarn test:material
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: screenshots
path: |
packages/*/test/visual/material/screenshots/*/failed/*.png
packages/vaadin-material-styles/test/visual/screenshots/failed/*.png