diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5c681aa..b8fe94b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -82,6 +82,15 @@ jobs: run: | docker exec -u tester -w $ROOT_PATH/ $CONTAINER_ID composer boilerplate:assistant + # Because execute in test environment the performance can vary, so let's + # try to not fail randomly because slow test machine. + - name: Lower Lighthouse minimal scores + env: + CONTAINER_ID: ${{ steps.testing-container-setup.outputs.CONTAINER_ID }} + ROOT_PATH: ${{ steps.testing-container-setup.outputs.ROOT_PATH }} + run: | + sed -i "s/0\.9/0\.75/" tests/functional/lighthouse/lighthouserc.js + - name: Run tests env: CONTAINER_ID: ${{ steps.testing-container-setup.outputs.CONTAINER_ID }}