Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,30 @@ jobs:
name: Run Core PHPUnit tests
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php:
- '/opt/cpanel/ea-php83/root/usr/bin/php'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should mention that this has to be changed to the PHP versions/paths of the hoster?!?

- '/opt/cpanel/ea-php82/root/usr/bin/php'
- '/opt/cpanel/ea-php81/root/usr/bin/php'
- '/opt/cpanel/ea-php80/root/usr/bin/php'
- '/opt/cpanel/ea-php74/root/usr/bin/php'
- '/opt/cpanel/ea-php73/root/usr/bin/php'
- '/opt/cpanel/ea-php72/root/usr/bin/php'

# Remove this line if Github Actions is your preferred means of running the tests.
if: ${{ false }}
# if: ${{ false }}

env:
# This is only a subset/example of env vars available. See the `.env.default` file for a full list.
WPT_PREPARE_DIR: ${{ secrets.WPT_PREPARE_DIR }}
WPT_TEST_DIR: ${{ secrets.WPT_TEST_DIR }}
WPT_PREPARE_DIR: /tmp/wp-test-runner
WPT_TEST_DIR: wp-test-runner
# WPT_PREPARE_DIR: ${{ secrets.WPT_PREPARE_DIR }}
# WPT_TEST_DIR: ${{ secrets.WPT_TEST_DIR }}
WPT_REPORT_API_KEY: ${{ secrets.WPT_REPORT_API_KEY }}
WPT_PHP_EXECUTABLE: ${{ secrets.WPT_PHP_EXECUTABLE }}
WPT_PHP_EXECUTABLE: ${{ matrix.php }}
# WPT_PHP_EXECUTABLE: ${{ secrets.WPT_PHP_EXECUTABLE }}
# Database settings
WPT_DB_NAME: ${{ secrets.WPT_DB_NAME }}
WPT_DB_USER: ${{ secrets.WPT_DB_USER }}
Expand Down
4 changes: 2 additions & 2 deletions cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This script is responsible for cleaning up the test environment after a run of the WordPress PHPUnit Test Runner.
* It ensures that temporary directories and files created during the test process are properly deleted.
*
*
* @link https://github.com/wordpress/phpunit-test-runner/ Original source repository
* @package WordPress
*/
Expand Down Expand Up @@ -48,6 +48,6 @@
*/
if ( ! empty( $WPT_SSH_CONNECT ) ) {
perform_operations( array(
'ssh ' . $WPT_SSH_OPTIONS . ' ' . escapeshellarg( $WPT_SSH_CONNECT ) . ' ' . escapeshellarg( $WPT_RM_TEST_DIR_CMD ),
'ssh ' . $WPT_SSH_OPTIONS . ' ' . escapeshellarg( $WPT_SSH_CONNECT ) . ' ' . escapeshellarg( $WPT_RM_TEST_DIR_CMD ),
) );
}