forked from vaadin/web-components
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (59 loc) · 1.8 KB
/
visual-tests.yml
File metadata and controls
72 lines (59 loc) · 1.8 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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@v2
with:
fetch-depth: "0"
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- name: Install Dependencies
run: yarn --frozen-lockfile --no-progress --non-interactive
- name: Visual tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: yarn test:lumo
- uses: actions/upload-artifact@v2
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@v2
with:
fetch-depth: "0"
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- name: Install Dependencies
run: yarn --frozen-lockfile --no-progress --non-interactive
- name: Visual tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: yarn test:material
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: screenshots
path: |
packages/*/test/visual/material/screenshots/*/failed/*.png
packages/vaadin-material-styles/test/visual/screenshots/failed/*.png