Add Chromium --no-sandbox flag
Some checks failed
Run Tests on Code / test (push) Successful in 16s
Build and Release Docker Image / test (push) Failing after 2m7s
Build and Release Docker Image / build (push) Has been skipped
Build and Release Docker Image / release (push) Has been skipped

This commit is contained in:
Neshura 2024-01-02 03:16:41 +01:00
parent 5be5e206f2
commit 91ca7c489e
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 14 additions and 5 deletions

View file

@ -29,10 +29,14 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: yarn install run: yarn install
- name: Add Unlighthouse - name: Install Chromium for Unlighthouse
run: | run: |
echo "apt update && apt install -y chromium" echo "apt update && apt install -y chromium"
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" echo "yarn global add @unlighthouse/cli"
yarn global add @unlighthouse/cli yarn global add @unlighthouse/cli

View file

@ -53,11 +53,16 @@ jobs:
- name: Build website - name: Build website
run: yarn build run: yarn build
- name: Run Unlighthouse - name: Install Chromium for Unlighthouse
run: | run: |
yarn dev & echo "apt update && apt install -y chromium"
unlighthouse-ci --build-static --desktop --outputPath reports/desktop apt update && apt install -y chromium
unlighthouse-ci --build-static --mobile --outputPath reports/mobile 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 - name: Uploading Lighthouse Reports
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3