-
Notifications
You must be signed in to change notification settings - Fork 11
55 lines (44 loc) · 1.3 KB
/
visual-regression.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
name: Test - Visual Regression
on:
pull_request:
branches: [main]
paths:
- 'packages/ui/**'
- 'packages/demos/**'
workflow_dispatch:
jobs:
visual-regression:
runs-on: ubuntu-latest
container:
image: cypress/included:13.12.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Set up Cypress binary cache
uses: actions/cache@v4
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build utils
run: pnpm --filter ./packages/utils run build
- name: Build UI Component Library
run: pnpm --filter ./packages/ui run build
- name: Build icons
run: pnpm --filter ./packages/icons run build
- name: Cypress run
uses: cypress-io/github-action@v6
with:
install: false
working-directory: packages/ui
start: pnpm --filter ./packages/ui run cypress:run
component: true
browser: chrome