Add Chromium --no-sandbox flag
This commit is contained in:
parent
af2762028b
commit
1dee471ea5
1 changed files with 9 additions and 4 deletions
|
@ -53,11 +53,16 @@ jobs:
|
|||
- name: Build website
|
||||
run: yarn build
|
||||
|
||||
- name: Run Unlighthouse
|
||||
- name: Install Chromium for Unlighthouse
|
||||
run: |
|
||||
yarn dev &
|
||||
unlighthouse-ci --build-static --desktop --outputPath reports/desktop
|
||||
unlighthouse-ci --build-static --mobile --outputPath reports/mobile
|
||||
echo "apt update && apt install -y chromium"
|
||||
apt update && apt install -y chromium
|
||||
echo export CHROMIUM_FLAGS="\$CHROMIUM_FLAGS --no-sandbox" >> /etc/chromium.d/default-flags
|
||||
|
||||
- name: Add Unlighthouse
|
||||
run: |
|
||||
echo "yarn global add @unlighthouse/cli"
|
||||
yarn global add @unlighthouse/cli
|
||||
|
||||
- name: Uploading Lighthouse Reports
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
Loading…
Reference in a new issue