Skip to content

Commit e41cf27

Browse files
feat: add chromatic playwright (#79)
* feat: add chromatic playwright * Update build-node-python.yml * Update build-node-python.yml * Update action.yml * Update build-node-python.yml * Update build-node-python.yml
1 parent c6182fd commit e41cf27

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/actions/build-node-python/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ runs:
247247
# Chromatic
248248
- name: Run Chromatic
249249
if: inputs.enable_node == 'true' && inputs.chromatic_enable == 'true'
250-
uses: chromaui/action@v11.5.4
250+
uses: chromaui/action@v11.7.1
251251
with:
252+
exitZeroOnChanges: true
253+
exitOnceUploaded: true
252254
projectToken: ${{ inputs.chromatic_project_token }}

.github/workflows/build-node-python.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ jobs:
375375
run_playwright_browser_install: true
376376
enable_node_cache: ${{ inputs.playwright_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }}
377377
enable_python_cache: ${{ inputs.playwright_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }}
378-
chromatic_enable: ${{ inputs.chromatic_enable }}
378+
chromatic_enable: false # Set to false as we run chromatic below w/ playwright integration
379379
chromatic_project_token: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
380380
- name: Decrypt .env.enc and <app>/.env.enc
381381
run: |
@@ -395,3 +395,11 @@ jobs:
395395
with:
396396
name: "playwright-report-${{ inputs.branch }}"
397397
path: playwright-report/
398+
- name: Run Chromatic Playwright
399+
if: ${{ inputs.chromatic_enable }}
400+
uses: chromaui/[email protected]
401+
with:
402+
playwright: true
403+
exitZeroOnChanges: true
404+
exitOnceUploaded: true
405+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

0 commit comments

Comments
 (0)