Skip to content

Commit 958508b

Browse files
committed
Update integration workflow for Chromatic
1 parent 0f068e2 commit 958508b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/integration.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
with:
6767
# Chromatic automatically defaults to the test-results directory.
6868
# Replace with the path to your custom directory and adjust the CHROMATIC_ARCHIVE_LOCATION environment variable accordingly.
69-
name: test-results
70-
path: ./test-results
69+
name: playwright-report-${{ matrix.shard }}_${{ strategy.job-total }}
70+
path: ./test-results/chromatic-archives
7171
retention-days: 30
7272

7373
chromatic:
@@ -88,15 +88,12 @@ jobs:
8888
- name: Download Playwright test results
8989
uses: actions/download-artifact@v4
9090
with:
91-
name: test-results
92-
path: ./test-results
91+
path: ./test-results/chromatic-archives
92+
pattern: playwright-report-*
93+
merge-multiple: true
9394

94-
- name: Run Chromatic
95+
- name: Run Chromatic tests
9596
uses: chromaui/action@latest
9697
with:
97-
# ⚠️ Enable Playwright
98-
playwright: true
99-
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret
10098
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
101-
# ⚠️ Optionally configure the archive location with env vars
102-
env: CHROMATIC_ARCHIVE_LOCATION=./test-results
99+
playwright: true

0 commit comments

Comments
 (0)