add jest + react testing library to the project #2995
Workflow file for this run
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: AUTO Visual Regression Test | |
on: | |
push: | |
branches: | |
- master | |
- v7_maintenance | |
pull_request: | |
branches: | |
- master | |
- v7_maintenance | |
jobs: | |
chromatic_deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Node 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: Install project dependencies | |
run: yarn install --immutable | |
- name: Bootstrap project | |
run: yarn bootstrap | |
- name: Build Storybook examples | |
run: yarn build-storybook | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: d8b52d7c3367 # We have to set this as a string so VRT can be run from forked branches as well. | |
exitZeroOnChanges: true | |
storybookBuildDir: ./packages/__examples__/__build__ |