Skip to content

Commit

Permalink
fix(lhci): add custom userAgent (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet authored Dec 9, 2024
1 parent df1bae1 commit d9a0bcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit d9a0bcc

Please sign in to comment.