Skip to content

Commit ef827a6

Browse files
authored
Merge pull request #18 from SimonFrings/php82
Run tests on PHP 8.1 and 8.2
2 parents 9defd43 + 8b06625 commit ef827a6

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
jobs:
88
PHPUnit:
99
name: PHPUnit (PHP ${{ matrix.php }})
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.2
15+
- 8.1
1416
- 8.0
1517
- 7.4
1618
- 7.3
@@ -22,7 +24,7 @@ jobs:
2224
- 5.4
2325
- 5.3
2426
steps:
25-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v3
2628
- uses: shivammathur/setup-php@v2
2729
with:
2830
php-version: ${{ matrix.php }}
@@ -35,12 +37,16 @@ jobs:
3537

3638
PHPUnit-hhvm:
3739
name: PHPUnit (HHVM)
38-
runs-on: ubuntu-18.04
40+
runs-on: ubuntu-22.04
3941
continue-on-error: true
4042
steps:
41-
- uses: actions/checkout@v2
42-
- uses: azjezz/setup-hhvm@v1
43+
- uses: actions/checkout@v3
44+
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
45+
- name: Run hhvm composer.phar install
46+
uses: docker://hhvm/hhvm:3.30-lts-latest
4347
with:
44-
version: lts-3.30
45-
- run: hhvm $(which composer) install
46-
- run: hhvm vendor/bin/phpunit
48+
args: hhvm composer.phar install
49+
- name: Run hhvm vendor/bin/phpunit
50+
uses: docker://hhvm/hhvm:3.30-lts-latest
51+
with:
52+
args: hhvm vendor/bin/phpunit

phpunit.xml.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
7+
cacheResult="false"
78
colors="true"
8-
cacheResult="false">
9+
convertDeprecationsToExceptions="true">
910
<testsuites>
1011
<testsuite name="mDNS React Test Suite">
1112
<directory>./tests/</directory>

0 commit comments

Comments
 (0)