-
Notifications
You must be signed in to change notification settings - Fork 26
67 lines (59 loc) · 1.61 KB
/
visual-base.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
name: Visual All Regression Test
on:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: 👷 Build Design System
runs-on: ubuntu-latest
env:
HUSKY: 0
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: ./.github/workflows/actions/setup
- uses: ./.github/workflows/actions/build
screenshots:
name: 📸 Updating Screenshots
runs-on: ubuntu-22.04
needs: [build]
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
HUSKY: 0
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: ./.github/workflows/actions/setup
- uses: ./.github/workflows/actions/test-setup
- name: Run Cypress
uses: cypress-io/github-action@v5
with:
start: npm run cy:start
wait-on: 'http://localhost:3333'
working-directory: test
install: false
browser: chrome
env: type=base
spec: |
cypress/e2e/visual/*.cy.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload snapshots
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-snapshots
path: test/cypress/snapshots
- name: Commit base images
uses: EndBug/add-and-commit@v9
with:
message: 'chore(): update base images'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}