From ea60b3cc71cb837794334379c1e2e47e692a9c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 26 Jan 2025 12:05:10 +0100 Subject: [PATCH] Improve tests workflow --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0e5aa90..937ceab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: - name: "Install PHP" uses: shivammathur/setup-php@v2 with: - php-version: 8.2 + php-version: "8.2" tools: composer:v2 - name: "Install composer dependencies" @@ -51,22 +51,22 @@ jobs: - name: "Install PHP" uses: shivammathur/setup-php@v2 with: - php-version: 8.2 + php-version: "8.2" tools: composer:v2 - name: "Install composer dependencies" run: composer install --prefer-dist --no-progress # WordPress tests works only with PHPUnit 9.x :( - # https://github.com/dimitriBouteille/wp-orm/actions/runs/11192354429/job/31116408495 + # https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/ - name: "Install PHPUnit v9" run: | - composer require --dev phpunit/phpunit ^9.0 -W - composer require --dev yoast/phpunit-polyfills ^3.0 -W + composer require --dev --update-with-all-dependencies 'phpunit/phpunit:^9.0' + composer require --dev --update-with-all-dependencies 'yoast/phpunit-polyfills:^3.0' - name: "Install WP" shell: bash run: ./config/scripts/install-wp-tests.sh wordpress_test root '' 127.0.0.1:3306 ${{ matrix.wp_version }} - name: "Run WordPress tests" - run: composer test:wordPress \ No newline at end of file + run: composer test:wordPress