Skip to content

Commit

Permalink
fixup! ci: deploy playwright reports with surge
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Feb 7, 2024
1 parent 61c277a commit a39c473
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,33 @@ jobs:
yarn tailwind-preset build
yarn components build
- name: Test Components
run: yarn components test-ct --shard ${{ matrix.shard }} --reporter=html
run: yarn components test-ct --shard ${{ matrix.shard }}
- name: Upload blob report artifacts
uses: actions/upload-artifact@v4
with:
name: blob-report-${{ matrix.shard }}
path: blob-report
retention-days: 2

test-ct-report:
name: Test Components Report
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.39.0-jammy
needs: test-ct
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
uses: ./.github/actions/node
- name: Download blob reports artifacts
uses: actions/download-artifact@v4
with:
path: all-blob-reports
pattern: blob-report-*
merge-multiple: true
- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports
- name: Upload Reporter
if: failure()
env:
Expand Down
2 changes: 1 addition & 1 deletion packages/orbit-components/playwright-ct.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
forbidOnly: process.env.CI != null,
retries: process.env.CI == null ? 0 : 1,
workers: process.env.CI == null ? undefined : 1,
reporter: process.env.CI == null ? "list" : [["html", { open: "never" }]],
reporter: process.env.CI == null ? "list" : "blob",
expect: {
toHaveScreenshot: {
threshold: 0.01, // default is 0.2 and that is way too lax, gives false negatives
Expand Down

0 comments on commit a39c473

Please sign in to comment.