From 010b1dbd7a71f9c00610f0eab86d1a5e4eb3dd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sat, 28 Oct 2023 15:25:10 +0200 Subject: [PATCH] Run tests on PHP 8.3 and update test suite --- .github/workflows/ci.yml | 5 +++-- composer.json | 11 ++++++++--- phpunit.xml.dist | 6 +++--- phpunit.xml.legacy | 4 ++-- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2c89d7a..4509b0a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: php: + - 8.3 - 8.2 - 8.1 - 8.0 @@ -23,7 +24,7 @@ jobs: - 5.5 - 5.4 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} @@ -40,7 +41,7 @@ jobs: runs-on: ubuntu-22.04 continue-on-error: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM - name: Run hhvm composer.phar install uses: docker://hhvm/hhvm:3.30-lts-latest diff --git a/composer.json b/composer.json index 2a48ed1d..a18bbf62 100644 --- a/composer.json +++ b/composer.json @@ -28,17 +28,22 @@ "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.36" + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" }, "autoload": { "psr-4": { "React\\Promise\\": "src/" }, - "files": ["src/functions_include.php"] + "files": [ + "src/functions_include.php" + ] }, "autoload-dev": { "psr-4": { - "React\\Promise\\": ["tests", "tests/fixtures"] + "React\\Promise\\": [ + "tests/", + "tests/fixtures/" + ] } }, "keywords": [ diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 42422782..b96d082b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy index 74ae9a12..7297f8df 100644 --- a/phpunit.xml.legacy +++ b/phpunit.xml.legacy @@ -1,6 +1,6 @@ - + - +