diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 77d9f0b..f18a806 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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' + - '/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 }} diff --git a/cleanup.php b/cleanup.php index e584c6c..f00cd31 100644 --- a/cleanup.php +++ b/cleanup.php @@ -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 */ @@ -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 ), ) ); }