diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3ec0e0..f9c85b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,21 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - PHP_VERSION: [ "8.0", "8.1" ] + ROBO_VERSION: [ "4.0", "5.0" ] + PHP_VERSION: [ "8.2", "8.3" ] + include: + - ROBO_VERSION: "4.0" + PHP_VERSION: "8.0" + - ROBO_VERSION: "4.0" + PHP_VERSION: "8.1" steps: - uses: actions/checkout@v2 - uses: php-actions/composer@v6 with: - php_version: ${{ matrix.php_version }} + command: "require consolidation/robo:~${{ matrix.ROBO_VERSION }}" + php_version: ${{ matrix.PHP_VERSION }} version: 2 - uses: php-actions/phpunit@v3 + with: + test_suffix: FALSE diff --git a/composer.json b/composer.json index 6467db6..51a0e33 100644 --- a/composer.json +++ b/composer.json @@ -10,12 +10,12 @@ } ], "require": { - "consolidation/robo": "^4.0" + "consolidation/robo": "^4.0 || ^5.0" }, "require-dev": { "drupal/coder": "^8.3.16", "phpunit/phpunit": "^9.5.5", - "phpro/grumphp": "^1.14" + "phpro/grumphp": "^1.14 || ^2.3" }, "autoload": { "psr-4": { diff --git a/tests/TaskTest.php b/tests/TaskTest.php index 702a39a..e2c9665 100644 --- a/tests/TaskTest.php +++ b/tests/TaskTest.php @@ -146,7 +146,7 @@ public function testProcess($config_file, $source_file, $processed_file) { * @return array * Test data. */ - public function appendTestProvider() { + public static function appendTestProvider() { return [ ['1-config.yml', '1-input.php', '1-output-append.php'], ['2-config.yml', '2-input.php', '2-output-append.php'], @@ -159,7 +159,7 @@ public function appendTestProvider() { * @return array * Test data. */ - public function prependTestProvider() { + public static function prependTestProvider() { return [ ['1-config.yml', '1-input.php', '1-output-prepend.php'], ['2-config.yml', '2-input.php', '2-output-prepend.php'], @@ -172,7 +172,7 @@ public function prependTestProvider() { * @return array * Test data. */ - public function writeTestProvider() { + public static function writeTestProvider() { return [ ['3-config.yml', '3-output-write.php'], ];