Skip to content

Recuring live test

Recuring live test #27

name: Recuring live test
on:
deployment_status:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
inputs:
app_url:
type: string
default: https://timezone.rocks
required: true
jobs:
e2e:
uses: ./.github/workflows/_test-e2e.yml
with:
APP_URL: ${{ inputs.app_url || 'https://timezone.rocks' }}
report:
runs-on: ubuntu-latest
needs: [e2e]
if: always()
steps:
- uses: actions/download-artifact@v4
with:
path: packages/e2e/blob-report
pattern: e2e-blob-report-*
merge-multiple: true
- uses: oven-sh/setup-bun@v1
- run: echo report=`bunx playwright merge-reports --reporter line packages/e2e/blob-report` >> "$GITHUB_OUTPUT"
id: report
- run: echo test failed
if: contains(steps.report.outputs.report,'✘')
- run: gh issue comment "$NUMBER" --body "$BODY"
# if: contains(steps.report.outputs.report,'✘')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: 15
BODY: ${{ steps.report.outputs.report }}