Skip to content

Commit

Permalink
Fix tests, added default lighthouserc.js and install steps
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Apr 6, 2024
1 parent d19a786 commit 6e822dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.lighthouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ services:
environment:
DDEV_HOSTNAME: $DDEV_HOSTNAME
volumes:
- ../reports/lighthouse:/home/lhci/reports/export
- ../tests/functional/lighthouse/lighthouserc.js:/home/lhci/reports/lighthouserc.js
- .:/mnt/ddev_config:ro
Binary file removed images/gh-tmate.jpg
Binary file not shown.
Binary file removed images/template-button.png
Binary file not shown.
9 changes: 9 additions & 0 deletions install.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
name: ddev-lighthouse


project_files:
- docker-compose.lighthouse.yaml
- commands/lighthouse/lighthouse
- lighthouse/lighthouserc.js.example

post_install_actions:
- test -d ${DDEV_APPROOT}/tests/functional/lighthouse || mkdir -p ${DDEV_APPROOT}/tests/functional/lighthouse
- test -f "${DDEV_APPROOT}/tests/functional/lighthouse/lighthouserc.js" || cp lighthouse/lighthouserc.js.example ${DDEV_APPROOT}/tests/functional/lighthouse/lighthouserc.js

- echo "Install finished. Please adjust tests in ${DDEV_APPROOT}/tests/functional/lighthouse/lighthouserc.js."

0 comments on commit 6e822dc

Please sign in to comment.