diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 018a8703b..70ec5acfb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 }}