chore(deps): bump @floating-ui/react from 0.19.2 to 0.27.3 in /support-frontend #663
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lighthouse CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [labeled] # Only run when a PR is labeled with the 'Seen-on-PROD' label set by prout | |
jobs: | |
Lighthouse: | |
if: ${{ github.event.label.name == 'Seen-on-PROD' }} | |
runs-on: ubuntu-latest | |
env: | |
GOOGLE_CHAT_WEB_HOOK: ${{ secrets.GOOGLE_CHAT_WEB_HOOK }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Audit URLs using Lighthouse | |
uses: treosh/lighthouse-ci-action@v12 | |
with: | |
urls: | | |
https://support.theguardian.com/uk/contribute | |
configPath: ./lighthouserc.json | |
uploadArtifacts: true # save results as an action artifacts | |
- 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 Lighthouse performance 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 Has this introduced a performance regression or do the metrics need tweaking? "}' |