Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Platane committed Mar 15, 2024
1 parent ed35fd7 commit d1ffb43
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/recuring-live-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions packages/e2e/tests/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ test("Should load timezone lines", async ({ page }) => {
});

test("Should load 3d globe", async ({ page, browserName }) => {
throw new Error("");

Check failure on line 12 in packages/e2e/tests/app.spec.ts

View workflow job for this annotation

GitHub Actions / e2e / e2e (chromium, 1)

[chromium] β€Ί app.spec.ts:11:5 β€Ί Should load 3d globe

1) [chromium] β€Ί app.spec.ts:11:5 β€Ί Should load 3d globe ────────────────────────────────────────── Error: 10 | 11 | test("Should load 3d globe", async ({ page, browserName }) => { > 12 | throw new Error(""); | ^ 13 | 14 | page.on("console", (msg) => console.log(msg.text())); 15 | at /home/runner/work/timezone-rocks/timezone-rocks/packages/e2e/tests/app.spec.ts:12:9

page.on("console", (msg) => console.log(msg.text()));

await page.goto("/");
Expand Down

0 comments on commit d1ffb43

Please sign in to comment.