Skip to content

Commit 3efd8dc

Browse files
authored
Merge pull request #36 from SimonFrings/php8
Run tests on PHP 8.1 and 8.2
2 parents dea3219 + 966ce83 commit 3efd8dc

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,25 @@ on:
66

77
jobs:
88
PHPUnit:
9+
name: PHPUnit (PHP ${{ matrix.php }} on ${{ matrix.os }})
910
runs-on: ${{ matrix.os }}
1011
strategy:
1112
matrix:
1213
os:
13-
- ubuntu-20.04
14-
- windows-2019
14+
- ubuntu-22.04
15+
- windows-2022
1516
php:
17+
- 8.2
18+
- 8.1
1619
- 8.0
1720
- 7.4
1821
- 7.3
1922
- 7.2
2023
- 7.1
2124
- 7.0
2225
steps:
23-
- uses: actions/checkout@v2
24-
- name: Setup PHP
25-
uses: shivammathur/setup-php@v2
26+
- uses: actions/checkout@v3
27+
- uses: shivammathur/setup-php@v2
2628
with:
2729
php-version: ${{ matrix.php }}
2830
extensions: zlib

phpunit.xml.dist

Lines changed: 5 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="zlib React Test Suite">
1112
<directory>./tests/</directory>
@@ -16,4 +17,7 @@
1617
<directory>./src/</directory>
1718
</include>
1819
</coverage>
20+
<php>
21+
<ini name="error_reporting" value="-1" />
22+
</php>
1923
</phpunit>

0 commit comments

Comments
 (0)