Skip to content

feat: add coverage command for ci unit tests #564

feat: add coverage command for ci unit tests

feat: add coverage command for ci unit tests #564

Workflow file for this run

# .github/workflows/chromatic.yml
# Workflow name
name: 'Chromatic'
# Event for the workflow
on:
push:
branches:
- 'main'
pull_request:
types: [opened, reopened, synchronize]
# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
if: ${{ !endsWith(github.actor , 'bot') && !endsWith(github.actor, '[bot]')}}
# Job steps
steps:
- uses: actions/checkout@v4
if: env.CHROMATIC_PROJECT_TOKEN != ''
with:
fetch-depth: 0 # Required so Chromatic can compare commits
- uses: ./.github/actions/setup
if: env.CHROMATIC_PROJECT_TOKEN != ''
- name: Load .env file
if: env.CHROMATIC_PROJECT_TOKEN != ''
uses: xom9ikk/dotenv@v2
with:
mode: test
- name: Publish to Chromatic
if: env.CHROMATIC_PROJECT_TOKEN != ''
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
onlyChanged: true
exitOnceUploaded: true
autoAcceptChanges: main
# Skip running Chromatic on dependabot PRs
skip: dependabot/**