From d1ffb439028025fb2c8a83086ca7228412cbd241 Mon Sep 17 00:00:00 2001 From: platane Date: Fri, 15 Mar 2024 12:44:54 +0100 Subject: [PATCH] . --- .github/workflows/recuring-live-test.yml | 19 +++++++++++-------- packages/e2e/tests/app.spec.ts | 2 ++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/recuring-live-test.yml b/.github/workflows/recuring-live-test.yml index 406d33c..708ce6f 100644 --- a/.github/workflows/recuring-live-test.yml +++ b/.github/workflows/recuring-live-test.yml @@ -34,8 +34,6 @@ jobs: - run: bunx playwright merge-reports --reporter line blob-report > report.txt - - run: cat report.txt - - run: echo failed=`cat report.txt | grep ✘` >> "$GITHUB_OUTPUT" id: status @@ -44,19 +42,24 @@ jobs: - run: echo failed if: steps.status.outputs.failed + - name: upload html report + if: steps.status.outputs.failed + run: | + bunx playwright merge-reports --reporter html blob-report + bunx wrangler pages deploy playwright-report --project-name=timezone-rocks + env: + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_PUBLISH_TOKEN }} + - name: Leave comment with the report - # if: steps.status.outputs.failed && github.event_name == 'schedule' + if: steps.status.outputs.failed + # if: steps.status.outputs.failed && github.event_name == 'schedule' run: | echo "🚨 e2e test failed [run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> body.txt - echo "\`\`\`" >> body.txt - cat report.txt >> body.txt - echo "\`\`\`" >> body.txt - cat body.txt - gh issue comment 15 --body-file body.txt env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/packages/e2e/tests/app.spec.ts b/packages/e2e/tests/app.spec.ts index 579e945..32f98ab 100644 --- a/packages/e2e/tests/app.spec.ts +++ b/packages/e2e/tests/app.spec.ts @@ -9,6 +9,8 @@ test("Should load timezone lines", async ({ page }) => { }); test("Should load 3d globe", async ({ page, browserName }) => { + throw new Error(""); + page.on("console", (msg) => console.log(msg.text())); await page.goto("/");