From caf471d3bff04482aeb96e1411de0c6a37827e1d Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Mon, 18 Oct 2021 18:33:23 +0200 Subject: [PATCH] ci: add WP 5.8 to automated test roster --- .github/workflows/test.yml | 2 +- README.md | 2 +- composer.json | 7 +++---- tests/bootstrap.php | 2 ++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bfc3a36..6598ad2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: matrix: include: - php: '7.4' - wordpress: '5.7' + wordpress: '5.8' - php: '5.6' wordpress: '4.7' steps: diff --git a/README.md b/README.md index 062e2fb..1ee5fbc 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ * Contributors: Stefan Kalscheuer * Tags: liveticker, feed, rss * Requires at least: 4.7 -* Tested up to: 5.7 +* Tested up to: 5.8 * Requires PHP: 5.6 * Stable tag: 1.1.1 * License: GPLv2 or later diff --git a/composer.json b/composer.json index cdb8411..d01b842 100644 --- a/composer.json +++ b/composer.json @@ -24,12 +24,11 @@ "phpunit/phpunit": "^5|^6|^7", "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "slowprog/composer-copy-file": "~0.3", - "squizlabs/php_codesniffer": "^3.5", + "squizlabs/php_codesniffer": "^3.6", "phpcompatibility/phpcompatibility-wp": "^2.1", "wp-coding-standards/wpcs": "^2.3", - "patchwork/jsqueeze": "^2.0", - "natxet/cssmin": "^3.0", - "matthiasmullie/minify": "^1.3" + "matthiasmullie/minify": "^1.3", + "yoast/phpunit-polyfills": "^1.0" }, "scripts": { "post-install-cmd": [ diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 01e3631..8772863 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -5,6 +5,8 @@ * @package SCLiveticker */ +require_once __DIR__ . '/../vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php'; + $_tests_dir = getenv( 'WP_TESTS_DIR' ); if ( ! $_tests_dir ) {