-
Notifications
You must be signed in to change notification settings - Fork 20
55 lines (52 loc) · 1.41 KB
/
visual-regression-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
name: Visual regression tests
on:
push:
branches:
- main
paths-ignore: # Until anchors are supported by GitHub Actions, we have to write this list twice.
- ".github/**"
- "docs/**"
- ".gitignore"
- "startup.sh"
- "CHANGELOG.md"
- "README.md"
- "LICENCE.md"
- "SUPPORT.md"
pull_request:
paths-ignore:
- ".github/**"
- "docs/**"
- ".gitignore"
- "startup.sh"
- "CHANGELOG.md"
- "README.md"
- "LICENCE.md"
- "SUPPORT.md"
workflow_dispatch:
inputs:
ref:
description: 'The branch, tag or SHA to checkout'
default: main
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name || github.run_id }}
cancel-in-progress: true
jobs:
visual-regression-test-components:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref }}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # Also runs `bundle install`
- uses: actions/[email protected]
with:
node-version: lts/* # use the latest LTS release
cache: yarn
- run: yarn install --frozen-lockfile
- run: bundle exec rake app:dartsass:build
- run: yarn run percy exec -- bundle exec rspec --tag visual_regression
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}