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 130859a commit 7cb83b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/recuring-live-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- uses: oven-sh/setup-bun@v1

- run: FORCE_COLOR=false bunx playwright merge-reports --reporter line blob-report | tee report.txt
- run: bunx playwright merge-reports --reporter line blob-report | tee report.txt

- run: echo failed=`cat report.txt | grep failed` >> "$GITHUB_OUTPUT"
id: status
Expand All @@ -44,15 +44,13 @@ jobs:
bunx playwright merge-reports --reporter html blob-report
bunx wrangler pages deploy playwright-report --project-name=timezone-rocks | tee deploy_out.txt
URL=`cat deploy_out.txt | grep -Eo "https://[^ ]*"`
echo $URL
echo url=$URL >> "$GITHUB_OUTPUT"
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
# if: steps.status.outputs.failed && github.event_name == 'schedule'
if: steps.status.outputs.failed && github.event_name == 'schedule'
run: |
echo "🚨 e2e test failed [report](${{ steps.report-upload.outputs.url }}) [run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) [app](${{ inputs.app_url || 'https://timezone.rocks' }})" >> body.txt
echo "\`\`\`" >> body.txt
Expand Down
2 changes: 0 additions & 2 deletions packages/e2e/tests/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ 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("/");
Expand Down

0 comments on commit 7cb83b7

Please sign in to comment.