When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
- git
- docker
- docker-compose
- Clone this repository
- Init docker containers
docker-composer -f docker\docker-compose.yaml up
- Access
http://localhost:88/wp-admin
in your browser and set up WordPress
- Connect to docker container
docker exec -it wordpress /bin/bash
- Go to the dev folder
cd /var/www/dev
- Run the Unit tests
vendor/bin/phpunit --testsuite "Unit" --coverage-text
- Run the Feature tests
vendor/bin/phpunit --testsuite "Feature" --coverage-text
- Check plugin. This script will do all the checks for the plugin. See
composer.json
-> scripts for more details
composer check-plugin
- Ensure any install or build dependencies are removed.
- Write tests for the new added code
- Run
composer check-plugin
on your local docker and make sure all checks pass