diff --git a/.github/shellspec/shellspec_spec/lighthouse___spec.sh b/.github/shellspec/shellspec_spec/lighthouse___spec.sh index b5b5ebf..0244964 100644 --- a/.github/shellspec/shellspec_spec/lighthouse___spec.sh +++ b/.github/shellspec/shellspec_spec/lighthouse___spec.sh @@ -5,6 +5,7 @@ Describe 'Lighthouse' lighthouse The status should be success The output should include "Healthcheck passed!" The output should include "Done running Lighthouse!" + The output should include "All results processed!" The path 'reports/lighthouse/_.report.html' should be file The path 'reports/lighthouse/_.report.json' should be file The path 'reports/lighthouse/manifest.json' should be file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b8fe94b..cdca4de 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -82,6 +82,9 @@ jobs: run: | docker exec -u tester -w $ROOT_PATH/ $CONTAINER_ID composer boilerplate:assistant + # Make theme folder writable because SASS compilation needs to generate files + #docker exec -u tester -w $ROOT_PATH/ $CONTAINER_ID chmod a+rw -R web/themes/custom/boilerplate_tests_radix/ + # 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 @@ -89,7 +92,10 @@ jobs: 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 + docker exec -u tester -w $ROOT_PATH/ $CONTAINER_ID sed -i "s/0\.9/0\.75/" tests/functional/lighthouse/lighthouserc.js + docker exec -u tester -w $ROOT_PATH/ $CONTAINER_ID cat tests/functional/lighthouse/lighthouserc.js + docker exec -u tester -w $ROOT_PATH/ $CONTAINER_ID docker compose cp tests/functional/lighthouse/lighthouserc.js lighthouse:/var/www/html/tests/functional/lighthouse/lighthouserc.js + - name: Run tests env: