@@ -74,37 +74,37 @@ jobs:
7474 sleep 2
7575 done
7676
77- - name: Bootstrap WordPress (install + plugin)
78- run: |
79- docker compose exec -T wordpress bash -lc '
80- set -e
81- cd /var/www/html
82-
83- # Install WP-CLI if missing
84- if ! command -v wp >/dev/null 2>&1; then
85- curl -sSLo /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
86- chmod +x /usr/local/bin/wp
87- fi
88-
89- # Install WordPress only if not installed
90- if ! wp core is-installed --allow-root --url="http://127.0.0.1:8071" >/dev/null 2>&1; then
91- wp core install \
92- --url="http://127.0.0.1:8071" \
93- --title="Test" \
94- --admin_user="test" \
95- --admin_password="asdf123jkl" \
96- --admin_email="test@test.test" \
97- --skip-email \
98- --allow-root
99- else
100- echo "WordPress already installed"
101- fi
102-
103- # Activate plugin
104- wp plugin activate fapi-signals --allow-root --url="http://127.0.0.1:8071" || true
105-
106- echo "WordPress + plugin ready"
107- '
77+ - name : Bootstrap WordPress (install + plugin)
78+ run : |
79+ docker compose exec -T wordpress bash -lc '
80+ set -e
81+ cd /var/www/html
82+
83+ # Install WP-CLI if missing
84+ if ! command -v wp >/dev/null 2>&1; then
85+ curl -sSLo /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
86+ chmod +x /usr/local/bin/wp
87+ fi
88+
89+ # Install WordPress only if not installed
90+ if ! wp core is-installed --allow-root --url="http://127.0.0.1:8071" >/dev/null 2>&1; then
91+ wp core install \
92+ --url="http://127.0.0.1:8071" \
93+ --title="Test" \
94+ --admin_user="test" \
95+ --admin_password="asdf123jkl" \
96+ --admin_email="test@test.test" \
97+ --skip-email \
98+ --allow-root
99+ else
100+ echo "WordPress already installed"
101+ fi
102+
103+ # Activate plugin
104+ wp plugin activate fapi-signals --allow-root --url="http://127.0.0.1:8071" || true
105+
106+ echo "WordPress + plugin ready"
107+ '
108108
109109 - name: Wait for wp-login.php
110110 run: |
0 commit comments