Skip to content

Commit

Permalink
chore(SLB-506): configure playwright publish to chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
elistone committed Dec 4, 2024
1 parent 84df054 commit aac43b4
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ jobs:
run: cat /tmp/preview.log || true
if: always()

- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: tests/e2e/playwright-report/
retention-days: 3

- name: Check for Chromatic project token
id: chromatic-check
shell: bash
Expand All @@ -65,8 +57,22 @@ jobs:
echo "available=false" >> $GITHUB_OUTPUT;
fi
- name: Publish to Chromatic
uses: chromaui/action@v11
- name: Publish Playwright to Chromatic
id: chromatic-playwright
uses: chromaui/action@latest
with:
playwright: true
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: tests/e2e/
env:
CHROMATIC_ARCHIVE_LOCATION: ./test-results
if:
${{steps.chromatic-check.outputs.available == 'true' && (success() ||
failure()) }}

- name: Publish Storybook to Chromatic
id: chromatic-storybook
uses: chromaui/action@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Expand Down

0 comments on commit aac43b4

Please sign in to comment.