Skip to content

Commit

Permalink
ci(Chromatic): disable ❌ check in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
zettca committed Aug 14, 2024
1 parent 4b54240 commit d924116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .config/chromatic.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"projectId": "Project:66a1254d9d7ebf301ff1bebb",
"buildScriptName": "build:doc",
"skip": "dependabot/**"
}
8 changes: 6 additions & 2 deletions .github/workflows/tests-visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
name: Chromatic
runs-on: ubuntu-latest

env:
IS_PR: ${{inputs.batch-id && 'true' || 'false' }}

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -29,8 +32,9 @@ jobs:
configFile: .config/chromatic.config.json
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
forceRebuild: true
exitOnceUploaded: ${{env.IS_PR}}

# Add red mark to workflow if it failed
- name: Evaluate Fail
# Mark workflow as failed if it has changed or failed tests
- name: Fail if visual changes
if: ${{ steps.publish.outcome == 'failure' || steps.publish.outputs.changeCount != '0' || steps.publish.outputs.errorCount != '0' }}
run: exit 1

0 comments on commit d924116

Please sign in to comment.