Skip to content

chore(deps): bump @floating-ui/react from 0.19.2 to 0.27.3 in /support-frontend #961

chore(deps): bump @floating-ui/react from 0.19.2 to 0.27.3 in /support-frontend

chore(deps): bump @floating-ui/react from 0.19.2 to 0.27.3 in /support-frontend #961

name: Playwright Smoke Tests
on:
workflow_dispatch:
pull_request:
types: [labeled] # Only run when a PR is labeled with the 'Seen-on-PROD' label set by prout
concurrency:
group: "playwright-${{ github.head_ref }}"
cancel-in-progress: true
jobs:
test:
if: ${{ github.event.label.name == 'Seen-on-PROD' }}
timeout-minutes: 60
runs-on: ubuntu-latest
env:
GOOGLE_CHAT_WEB_HOOK: ${{ secrets.GOOGLE_CHAT_WEB_HOOK }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.11.0
- name: Install dependencies
working-directory: ./support-e2e
run: yarn install
- name: Install Playwright Browsers
working-directory: ./support-e2e
run: yarn playwright install --with-deps
- name: Run Playwright tests
working-directory: ./support-e2e
run: yarn test-smoke
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: support-e2e/playwright-report/
retention-days: 30
- name: Notify on Failure
if: ${{ failure() }}
run: |
failedWorkflowRun="https://github.com/guardian/support-frontend/actions/runs/$GITHUB_RUN_ID"
prTrigger="https://github.com/guardian/support-frontend/pull/${{ github.event.number }}"
curl -X POST -H "Content-Type: application/json" "$GOOGLE_CHAT_WEB_HOOK" -d '{"text": "🚨 The Playwright smoke tests for support-frontend have failed 🚨\n\n- <'"$failedWorkflowRun"'|You can see the reason for this failure on GitHub>. \n- <'"$prTrigger"'|PR that triggered this>.\n\n πŸ“– <https://github.com/guardian/support-frontend/wiki/Post-deployment-test-runbook|Check the runbook for a step by step guide>"}'