Skip to content

add react 18 support #277

add react 18 support

add react 18 support #277

Workflow file for this run

name: Chromatic on label
on: [pull_request]
jobs:
snapshot:
name: Run visual regression tests with chromatic (label triggered)
if: ${{ contains(github.event.pull_request.labels.*.name, 'snapshot') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Read .nvmrc
run: echo ::set-output name=nvmrc::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '${{ steps.nvm.outputs.nvmrc }}'
- uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: ${{ runner.OS }}-yarn-cache-v1-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-cache-v1-
- name: Install
run: yarn install --frozen-lockfile && yarn bootstrap
- uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}