diff --git a/.github/workflows/all-tests.yml b/.github/workflows/all-tests.yml index ed752143a9..4e2e1994e3 100644 --- a/.github/workflows/all-tests.yml +++ b/.github/workflows/all-tests.yml @@ -118,6 +118,15 @@ jobs: run: | cd tests/pw npm ci + + # Create php debuglog file + - name: Create php debuglog file + if: success() + run: | + cd tests/pw + mkdir -p debuglog && touch debuglog/debug.log + + # Start wordpress environment - name: Start WordPress Env diff --git a/tests/pw/.wp-env.json b/tests/pw/.wp-env.json index c1b4fdcbe0..785ec0e213 100644 --- a/tests/pw/.wp-env.json +++ b/tests/pw/.wp-env.json @@ -22,7 +22,8 @@ "WP_DEBUG_DISPLAY": "true" }, "mappings": { - ".htaccess": ".htaccess" + ".htaccess": ".htaccess", + "wp-content/debug.log": "./debuglog/debug.log" } } } diff --git a/tests/pw/.wp-env.override b/tests/pw/.wp-env.override index c988950818..49b1e0e8fb 100644 --- a/tests/pw/.wp-env.override +++ b/tests/pw/.wp-env.override @@ -8,7 +8,7 @@ "https://github.com/shashwatahalder01/TestUtils/raw/main/ba.zip", "https://github.com/shashwatahalder01/TestUtils/raw/main/wa.zip", "https://github.com/shashwatahalder01/TestUtils/raw/main/wb.zip", - "https://github.com/shashwatahalder01/TestUtils/raw/main/wps.zip", + "https://github.com/shashwatahalder01/TestUtils/raw/main/wpa.zip", "https://github.com/shashwatahalder01/TestUtils/raw/main/ws.zip" ] }