Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lhci): add custom userAgent #338

Merged
merged 8 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/lhci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ jobs:
- shell: bash
name: test url with french redirection
run: |
cat .lighthouseci/*.json | grep '"finalUrl": "https://opentermsarchive.org/fr"'
ls .lighthouseci
cat .lighthouseci/*.json | grep '"finalUrl": "https://opentermsarchive.org/fr/"'
- shell: bash
name: test second URL
run: |
ls .lighthouseci
cat .lighthouseci/*.json | grep '"finalUrl": "https://domifa.fabrique.social.gouv.fr/"'
2 changes: 1 addition & 1 deletion lhci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
required: false
chromeFlags:
description: "Chrome flags, see https://peter.sh/experiments/chromium-command-line-switches"
default: "--no-sandbox --disable-dev-shm-usage --headless"
default: "--no-sandbox --disable-dev-shm-usage --headless --user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0 - dashlord'"
required: false

runs:
Expand Down
Loading