Merge branch 'main' into feature/134/autosuggest-testing-refactor #2560
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: 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 |