Skip to content

Commit 384c4db

Browse files
authored
Merge pull request #194 from clue-labs/update-tests
Test on PHP 8.2 and update test environment
2 parents 0b830cf + 17d947a commit 384c4db

2 files changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@ jobs:
1111
strategy:
1212
matrix:
1313
os:
14-
- ubuntu-20.04
15-
- windows-2019
14+
- ubuntu-22.04
15+
- windows-2022
1616
php:
17+
- 8.2
1718
- 8.1
1819
- 8.0
1920
- 7.4
2021
- 7.3
2122
- 7.2
2223
- 7.1
2324
steps:
24-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2526
- uses: shivammathur/setup-php@v2
2627
with:
2728
php-version: ${{ matrix.php }}
@@ -34,18 +35,19 @@ jobs:
3435

3536
Built-in-webserver:
3637
name: Built-in webserver (PHP ${{ matrix.php }})
37-
runs-on: ubuntu-20.04
38+
runs-on: ubuntu-22.04
3839
strategy:
3940
matrix:
4041
php:
42+
- 8.2
4143
- 8.1
4244
- 8.0
4345
- 7.4
4446
- 7.3
4547
- 7.2
4648
- 7.1
4749
steps:
48-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v3
4951
- uses: shivammathur/setup-php@v2
5052
with:
5153
php-version: ${{ matrix.php }}
@@ -56,14 +58,14 @@ jobs:
5658

5759
Docker:
5860
name: Docker (${{ matrix.dockerfile }})
59-
runs-on: ubuntu-20.04
61+
runs-on: ubuntu-22.04
6062
strategy:
6163
matrix:
6264
dockerfile:
6365
- "Dockerfile-basics"
6466
- "Dockerfile-production"
6567
steps:
66-
- uses: actions/checkout@v2
68+
- uses: actions/checkout@v3
6769
- uses: shivammathur/setup-php@v2
6870
with:
6971
php-version: 8.1
@@ -78,18 +80,19 @@ jobs:
7880

7981
nginx-webserver:
8082
name: nginx + PHP-FPM (PHP ${{ matrix.php }})
81-
runs-on: ubuntu-20.04
83+
runs-on: ubuntu-22.04
8284
strategy:
8385
matrix:
8486
php:
87+
- 8.2-rc
8588
- 8.1
8689
- 8.0
8790
- 7.4
8891
- 7.3
8992
- 7.2
9093
- 7.1
9194
steps:
92-
- uses: actions/checkout@v2
95+
- uses: actions/checkout@v3
9396
- uses: shivammathur/setup-php@v2
9497
with:
9598
php-version: ${{ matrix.php }}
@@ -101,18 +104,19 @@ jobs:
101104

102105
Apache-webserver:
103106
name: Apache webserver (PHP ${{ matrix.php }})
104-
runs-on: ubuntu-20.04
107+
runs-on: ubuntu-22.04
105108
strategy:
106109
matrix:
107110
php:
111+
- 8.2-rc
108112
- 8.1
109113
- 8.0
110114
- 7.4
111115
- 7.3
112116
- 7.2
113117
- 7.1
114118
steps:
115-
- uses: actions/checkout@v2
119+
- uses: actions/checkout@v3
116120
- uses: shivammathur/setup-php@v2
117121
with:
118122
php-version: ${{ matrix.php }}
@@ -123,18 +127,19 @@ jobs:
123127

124128
PHP-webserver:
125129
name: PHP webserver (PHP ${{ matrix.php }})
126-
runs-on: ubuntu-20.04
130+
runs-on: ubuntu-22.04
127131
strategy:
128132
matrix:
129133
php:
134+
- 8.2
130135
- 8.1
131136
- 8.0
132137
- 7.4
133138
- 7.3
134139
- 7.2
135140
- 7.1
136141
steps:
137-
- uses: actions/checkout@v2
142+
- uses: actions/checkout@v3
138143
- uses: shivammathur/setup-php@v2
139144
with:
140145
php-version: ${{ matrix.php }}

phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@
1717
<directory>./src/</directory>
1818
</include>
1919
</coverage>
20+
<php>
21+
<ini name="error_reporting" value="-1" />
22+
</php>
2023
</phpunit>

0 commit comments

Comments
 (0)