Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanzante committed Jan 25, 2024
1 parent e3dc767 commit ecc72c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/shellspec/shellspec_spec/lighthouse___spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,20 @@ 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
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
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:
Expand Down

0 comments on commit ecc72c9

Please sign in to comment.