Skip to content

Commit c9f250b

Browse files
authored
Merge pull request #42 from clue-labs/update-tests
Update test environment to make tests pass again
2 parents 5861005 + ccfd15c commit c9f250b

4 files changed

Lines changed: 29 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
PHPUnit:
99
name: PHPUnit (PHP ${{ matrix.php }})
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-24.04
1111
strategy:
1212
matrix:
1313
php:
@@ -16,15 +16,15 @@ jobs:
1616
- 8.0
1717
- 7.4
1818
- 7.3
19-
- 7.2
19+
# - 7.2 # skip temporarily due to version conflicts
2020
- 7.1
2121
- 7.0
2222
- 5.6
2323
- 5.5
2424
- 5.4
2525
- 5.3
2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v6
2828
- uses: shivammathur/setup-php@v2
2929
with:
3030
php-version: ${{ matrix.php }}
@@ -39,13 +39,16 @@ jobs:
3939

4040
PHPUnit-hhvm:
4141
name: PHPUnit (HHVM)
42-
runs-on: ubuntu-18.04
42+
runs-on: ubuntu-24.04
4343
continue-on-error: true
4444
steps:
45-
- uses: actions/checkout@v2
46-
- uses: azjezz/setup-hhvm@v1
45+
- uses: actions/checkout@v6
46+
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
47+
- name: Run hhvm composer.phar install
48+
uses: docker://hhvm/hhvm:3.30-lts-latest
4749
with:
48-
version: lts-3.30
49-
- run: composer self-update --2.2 # downgrade Composer for HHVM
50-
- run: hhvm $(which composer) install
51-
- run: hhvm vendor/bin/phpunit
50+
args: hhvm composer.phar install
51+
- name: Run hhvm vendor/bin/phpunit
52+
uses: docker://hhvm/hhvm:3.30-lts-latest
53+
with:
54+
args: hhvm vendor/bin/phpunit

composer.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,23 @@
2020
"react/stream": "^1.2"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.36",
23+
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36",
2424
"react/async": "^4 || ^3 || ^2",
2525
"react/http": "^1.5",
26-
"react/mysql": "^0.5.5"
26+
"react/mysql": "^0.5.5",
27+
"react/promise-timer": "^1.11"
2728
},
2829
"autoload": {
29-
"psr-4": { "Clue\\React\\SshProxy\\": "src/" },
30-
"files": [ "src/Io/functions.php" ]
30+
"psr-4": {
31+
"Clue\\React\\SshProxy\\": "src/"
32+
},
33+
"files": [
34+
"src/Io/functions.php"
35+
]
3136
},
3237
"autoload-dev": {
33-
"psr-4": { "Clue\\Tests\\React\\SshProxy\\": "tests/"}
38+
"psr-4": {
39+
"Clue\\Tests\\React\\SshProxy\\": "tests/"
40+
}
3441
}
3542
}

phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!-- PHPUnit configuration file with new format for PHPUnit 9.3+ -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
<!-- PHPUnit configuration file with new format for PHPUnit 9.6+ -->
4+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
77
cacheResult="false"
88
colors="true"

phpunit.xml.legacy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!-- PHPUnit configuration file with old format for PHPUnit 9.2 or older -->
3+
<!-- PHPUnit configuration file with old format for legacy PHPUnit -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.8/phpunit.xsd"
66
bootstrap="vendor/autoload.php"

0 commit comments

Comments
 (0)