Skip to content

Add Chromatic visual regression tests for UI component #14

Add Chromatic visual regression tests for UI component

Add Chromatic visual regression tests for UI component #14

Workflow file for this run

# Name of our action
name: "Chromatic Deployment"
# The event that will trigger the action
on: push
# What the action will do
jobs:
test:
# The operating system it will run on
runs-on: ubuntu-latest
# The list of steps that the action will go through
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to retrieve git history
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn
- name: Publish to Chromatic
uses: chromaui/action@latest
# Options required to the GitHub Chromatic action
with:
# Chromatic projectToken, see https://storybook.js.org/tutorials/visual-testing-handbook/react/en/automate/ to obtain it
projectToken: 385f9df90462
token: ${{ secrets.GITHUB_TOKEN }}