Skip to content

Merge branch 'main' into feature/3282/increase-search-threshold #2482

Merge branch 'main' into feature/3282/increase-search-threshold

Merge branch 'main' into feature/3282/increase-search-threshold #2482

name: Run visual regression tests
on: [push]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
RUNNING_IN_CI: true
jobs:
run-visual-regression-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Install Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn install
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Run visual regression tests
id: vr
run: yarn test-visual
# Archive report artifacts if visual regression tests fail
- name: Archive BackstopJS reports
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: backstop-reports
path: |
backstop_data/bitmaps_test
backstop_data/html_report