Skip to content

Commit 582fa62

Browse files
committed
chore: add CI jobs for visual tests
1 parent 735c33b commit 582fa62

File tree

3 files changed

+74
-4
lines changed

3 files changed

+74
-4
lines changed

.github/workflows/lumo.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Lumo
2+
3+
on: pull_request
4+
5+
jobs:
6+
tests:
7+
name: Visual tests
8+
runs-on: ubuntu-latest
9+
if: github.repository_owner == 'vaadin'
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: "0"
15+
16+
- name: Setup Node 14.x
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 14.x
20+
21+
- uses: actions/cache@v2
22+
with:
23+
path: |
24+
node_modules
25+
*/*/node_modules
26+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
27+
28+
- name: Install Dependencies
29+
run: yarn --frozen-lockfile --no-progress --non-interactive
30+
31+
- name: Visual tests
32+
env:
33+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
34+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
35+
run: yarn test:lumo

.github/workflows/material.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Material
2+
3+
on: pull_request
4+
5+
jobs:
6+
tests:
7+
name: Visual tests
8+
runs-on: ubuntu-latest
9+
if: github.repository_owner == 'vaadin'
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: "0"
15+
16+
- name: Setup Node 14.x
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 14.x
20+
21+
- uses: actions/cache@v2
22+
with:
23+
path: |
24+
node_modules
25+
*/*/node_modules
26+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
27+
28+
- name: Install Dependencies
29+
run: yarn --frozen-lockfile --no-progress --non-interactive
30+
31+
- name: Visual tests
32+
env:
33+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
34+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
35+
run: yarn test:material

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
"preversion": "node scripts/updateVersion.js",
2727
"test": "web-test-runner --coverage",
2828
"test:firefox": "web-test-runner --config web-test-runner-firefox.config.js",
29-
"test-lumo": "web-test-runner --config web-test-runner-lumo.config.js",
30-
"test-material": "web-test-runner --config web-test-runner-material.config.js",
29+
"test:lumo": "web-test-runner --config web-test-runner-lumo.config.js",
30+
"test:material": "web-test-runner --config web-test-runner-material.config.js",
3131
"test:webkit": "web-test-runner --config web-test-runner-webkit.config.js",
32-
"update-lumo": "TEST_ENV=update web-test-runner --config web-test-runner-lumo.config.js",
33-
"update-material": "TEST_ENV=update web-test-runner --config web-test-runner-material.config.js"
32+
"update:lumo": "TEST_ENV=update web-test-runner --config web-test-runner-lumo.config.js",
33+
"update:material": "TEST_ENV=update web-test-runner --config web-test-runner-material.config.js"
3434
},
3535
"devDependencies": {
3636
"@vaadin/testing-helpers": "^0.1.3",

0 commit comments

Comments
 (0)