Skip to content

chore(dropzone): full fidelity #2513

chore(dropzone): full fidelity

chore(dropzone): full fidelity #2513

Workflow file for this run

name: Visual regression testing with Chromatic
on:
push:
branches:
- main
paths:
- '2nd-gen/**'
- '.github/workflows/chromatic-vrt.yml'
pull_request:
types: [opened, synchronize, reopened, labeled, ready_for_review]
workflow_dispatch:
workflow_call:
inputs:
skip:
description: 'Skip running VRT'
required: false
type: boolean
default: false
outputs:
storybook-url:
description: 'URL of the published Storybook'
value: ${{ jobs.chromatic.outputs.storybook-url }}
permissions:
contents: read
pull-requests: write
jobs:
chromatic:
name: Chromatic
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || contains(github.event.pull_request.labels.*.name, 'run_vrt') }}
outputs:
storybook-url: ${{ steps.chromatic.outputs.storybookUrl != 'undefined' && steps.chromatic.outputs.storybookUrl || '' }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Job and Install Dependencies
uses: ./.github/actions/setup-job
- name: Generate Custom Elements Manifest
working-directory: 2nd-gen/packages/swc
run: yarn analyze
- name: Publish to Chromatic
id: chromatic
uses: chromaui/action@v15
with:
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
workingDir: 2nd-gen/packages/swc
autoAcceptChanges: 'main'
skip: ${{ inputs.skip }}