Skip to content

Commit

Permalink
Add Chromatic visual regression tests for UI components
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed Dec 22, 2023
1 parent ec8b30a commit 3f59dc0
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/chromatic.yml
@@ -0,0 +1,24 @@
# Workflow name
name: "Chromatic Deployment"

# Event for the workflow
on: push

# List of jobs
jobs:
test:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: yarn
#👇 Adds Chromatic as a step in the workflow
- uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
with:
#👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/angular/en/deploy/ to obtain it
projectToken: t1lqdxy63up
token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -54,6 +54,7 @@
"@storybook/test-runner": "^0.16.0",
"@types/jasmine": "~4.3.0",
"@types/jest": "^29.5.1",
"chromatic": "^10.2.0",
"jasmine-core": "~4.5.0",
"jest": "^29.5.0",
"jest-preset-angular": "^13.0.1",
Expand Down

0 comments on commit 3f59dc0

Please sign in to comment.