diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97e71d7..9b09c4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: jobs: PHPUnit: name: PHPUnit (PHP ${{ matrix.php }}) - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: php: @@ -16,7 +16,7 @@ jobs: - 8.0 - 7.4 - 7.3 - - 7.2 + # - 7.2 # skip temporarily due to version conflicts - 7.1 - 7.0 - 5.6 @@ -24,7 +24,7 @@ jobs: - 5.4 - 5.3 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} @@ -39,13 +39,16 @@ jobs: PHPUnit-hhvm: name: PHPUnit (HHVM) - runs-on: ubuntu-18.04 + runs-on: ubuntu-24.04 continue-on-error: true steps: - - uses: actions/checkout@v2 - - uses: azjezz/setup-hhvm@v1 + - uses: actions/checkout@v6 + - 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 with: - version: lts-3.30 - - run: composer self-update --2.2 # downgrade Composer for HHVM - - run: hhvm $(which composer) install - - run: hhvm vendor/bin/phpunit + args: hhvm composer.phar install + - name: Run hhvm vendor/bin/phpunit + uses: docker://hhvm/hhvm:3.30-lts-latest + with: + args: hhvm vendor/bin/phpunit diff --git a/composer.json b/composer.json index e441cb6..8a2a994 100644 --- a/composer.json +++ b/composer.json @@ -20,16 +20,23 @@ "react/stream": "^1.2" }, "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.36", + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", "react/async": "^4 || ^3 || ^2", "react/http": "^1.5", - "react/mysql": "^0.5.5" + "react/mysql": "^0.5.5", + "react/promise-timer": "^1.11" }, "autoload": { - "psr-4": { "Clue\\React\\SshProxy\\": "src/" }, - "files": [ "src/Io/functions.php" ] + "psr-4": { + "Clue\\React\\SshProxy\\": "src/" + }, + "files": [ + "src/Io/functions.php" + ] }, "autoload-dev": { - "psr-4": { "Clue\\Tests\\React\\SshProxy\\": "tests/"} + "psr-4": { + "Clue\\Tests\\React\\SshProxy\\": "tests/" + } } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 5d73783..b8cf10d 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,8 @@ - - + - +