This plugin tests the Plugin Machine Github Action
- Git clone:
git clone [email protected]:shelob9/action-test.git
- Install javascript dependencies
yarn
- Install php dependencies
composer install
PHP classes should be located in the "php" directory and follow the PSR-4 standard.
The root namespace is ActionTest
.
- Run unit tests
composer test
A docker-compose-based local development environment is provided.
- Start server
docker-compose up -d
- Acess Site
- WP CLI
- Run any WP CLI command in container:
docker-compose run wpcli wp ...
- Setup site with WP CLI
docker-compose run wpcli wp core install --url=http://localhost:6033 --title="action-test" --admin_user=admin0 [email protected]
docker-compose run wpcli wp user create admin [email protected] --role=administrator --user_pass=pass
- Run any WP CLI command in container: