diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd96b2a..5f6516a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,8 @@ jobs: php-version: ${{ matrix.php }} coverage: none - - run: php Tests/fix_composer_json.php - - uses: "ramsey/composer-install@v1" + with: # ext-rdkafka not needed for tests, and a pain to install on CI; + composer-options: "--ignore-platform-req=ext-rdkafka" - run: vendor/bin/phpunit --exclude-group=functional diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php index bf11262..1d4816c 100644 --- a/Tests/bootstrap.php +++ b/Tests/bootstrap.php @@ -12,5 +12,8 @@ } } +// Pretend that a high version was installed, opposed to 0.8.5 from kwn/php-rdkafka-stubs +const RD_KAFKA_VERSION = 42424242; + include_once $kafkaStubsDir.'/stubs/constants.php'; include_once $kafkaStubsDir.'/stubs/functions.php'; diff --git a/Tests/fix_composer_json.php b/Tests/fix_composer_json.php deleted file mode 100644 index b778f6f..0000000 --- a/Tests/fix_composer_json.php +++ /dev/null @@ -1,9 +0,0 @@ -