Try setting PATH to start with directory for newly installed chrome

This commit is contained in:
GCHQDeveloper581 2026-05-16 10:54:39 +00:00
parent 31821d70b0
commit 37ce0886aa
No known key found for this signature in database
GPG Key ID: 6222E059A3DF595C

View File

@ -46,6 +46,7 @@ jobs:
retention-days: 5 retention-days: 5
- name: Setup Chrome - name: Setup Chrome
id: setup-chrome
if: success() if: success()
uses: browser-actions/setup-chrome@2e1d749697dd1612b833dba4a722266286fbefcd # v2.1.2 uses: browser-actions/setup-chrome@2e1d749697dd1612b833dba4a722266286fbefcd # v2.1.2
with: with:
@ -54,6 +55,7 @@ jobs:
- name: UI Tests - name: UI Tests
if: success() if: success()
run: | run: |
export PATH=`dirname ${{ steps.setup-chrome.outputs.chrome-path }}`:$PATH
sudo apt-get install xvfb sudo apt-get install xvfb
xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui