diff --git a/.github/workflows/wordpress-tests.yml b/.github/workflows/wordpress-tests.yml index ab84450..5462464 100644 --- a/.github/workflows/wordpress-tests.yml +++ b/.github/workflows/wordpress-tests.yml @@ -23,8 +23,11 @@ jobs: - name: Install dependencies run: npm ci - - name: Install wp-env - run: npm install -g @wordpress/env + - name: Install wp-env and docker-compose + run: | + npm install -g @wordpress/env + sudo apt-get update + sudo apt-get install -y docker-compose - name: Setup WordPress Single Site run: | @@ -53,8 +56,11 @@ jobs: - name: Install dependencies run: npm ci - - name: Install wp-env - run: npm install -g @wordpress/env + - name: Install wp-env and docker-compose + run: | + npm install -g @wordpress/env + sudo apt-get update + sudo apt-get install -y docker-compose - name: Setup WordPress Multisite run: | diff --git a/.wiki/Testing-Framework.md b/.wiki/Testing-Framework.md index 8480961..d69bfad 100644 --- a/.wiki/Testing-Framework.md +++ b/.wiki/Testing-Framework.md @@ -34,6 +34,7 @@ We use `@wordpress/env` and Cypress for testing our plugin. ## Testing in Single Site WordPress 1. Set up the single site environment: + ```bash npm run setup:single ```