Merge pull request #4245 from alphagov/release-43.4.0 #8943
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |