Skip to content

Update visual-regression-tests.yml #2165

Update visual-regression-tests.yml

Update visual-regression-tests.yml #2165

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: Start docker
run: docker start
- 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