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..b3a8ed5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -89,11 +89,13 @@ 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 $CONTAINER_ID 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 }} ROOT_PATH: ${{ steps.testing-container-setup.outputs.ROOT_PATH }} run: | + # Make theme folder writasble because SASS compilation needs to generate files + docker exec -u root $CONTAINER_ID sudo chmod a+rw -R web/themes/custom/boilerplate_tests_radix/ docker exec -u tester -w $ROOT_PATH/ $CONTAINER_ID /opt/shellspec/shellspec