Select #5118
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: Screenshots | |
on: | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: run screenshots tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Checkout LFS objects | |
run: git lfs checkout | |
- name: Install dependencies | |
run: yarn | |
- name: Build storybook | |
run: yarn build-storybook-from-dist | |
- name: Run screenshots tests | |
run: yarn test:screenshots | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: diffs | |
path: packages/**/__diff_output__/* | |
if-no-files-found: ignore |