Skip to content

YALB-1319 - Bug: Image Gallery - caption cut off | YALB-1473 - Bug: Image Gallery issues with pagination on different browsers and devices #276

YALB-1319 - Bug: Image Gallery - caption cut off | YALB-1473 - Bug: Image Gallery issues with pagination on different browsers and devices

YALB-1319 - Bug: Image Gallery - caption cut off | YALB-1473 - Bug: Image Gallery issues with pagination on different browsers and devices #276

name: Visual Regression
on:
pull_request:
types: [ready_for_review]
jobs:
visual-regression:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Check whether components were changed.
# Then below, we can only run steps if there's something to test.
- uses: dorny/paths-filter@v2
id: component_changes
with:
filters: |
components:
- 'components/**'
- name: Install Node.js
if: steps.component_changes.outputs.components == 'true'
uses: actions/setup-node@v2
with:
node-version: 16.13
- name: Install
if: steps.component_changes.outputs.components == 'true'
run: npm ci
env:
YALESITES_BUILD_TOKEN: ${{ secrets.YALESITES_BUILD_TOKEN }}
- name: Build storybook
if: steps.component_changes.outputs.components == 'true'
run: npm run storybook:build
- name: Run Percy Tests
if: steps.component_changes.outputs.components == 'true'
run: npm run visreg:ci
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}