Skip to content

Commit b008a79

Browse files
authored
PHP 8.5 Compatibility (#6)
* PHP 8.5 Compatibility Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * wip Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> --------- Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent f8f75ae commit b008a79

File tree

2 files changed

+54
-6
lines changed

2 files changed

+54
-6
lines changed

.github/workflows/tests.yaml

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,51 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11+
tests-on-pest-4:
12+
runs-on: ${{ matrix.os }}
13+
continue-on-error: ${{ matrix.experimental }}
14+
strategy:
15+
matrix:
16+
os:
17+
- "ubuntu-latest"
18+
- "windows-latest"
19+
php:
20+
- 8.5
21+
- 8.4
22+
- 8.3
23+
dependencies:
24+
- "highest"
25+
- "lowest"
26+
experimental:
27+
- false
28+
29+
name: Pest:4 / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
30+
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v4
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo
40+
coverage: none
41+
42+
- name: Install dependencies
43+
uses: "ramsey/composer-install@v3"
44+
with:
45+
dependency-versions: "${{ matrix.dependencies }}"
46+
composer-options: "--prefer-dist --no-cache --with=pestphp/pest:^4.0"
47+
48+
- name: Installed dependencies
49+
run: composer show -D
50+
51+
- name: Execute tests
52+
run: |
53+
vendor/bin/pest --migrate-configuration
54+
vendor/bin/pest
55+
1156
tests-on-pest-3:
1257
runs-on: ${{ matrix.os }}
1358
continue-on-error: ${{ matrix.experimental }}
@@ -26,7 +71,7 @@ jobs:
2671
experimental:
2772
- false
2873

29-
name: PHP${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
74+
name: Pest:3 / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
3075

3176
steps:
3277
- name: Checkout code
@@ -69,7 +114,7 @@ jobs:
69114
experimental:
70115
- false
71116

72-
name: PHP${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
117+
name: Pest:2 / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
73118

74119
steps:
75120
- name: Checkout code
@@ -112,7 +157,7 @@ jobs:
112157
experimental:
113158
- false
114159

115-
name: PHP${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
160+
name: Pest:1 / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}
116161

117162
steps:
118163
- name: Checkout code

composer.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,17 @@
3636
"require-dev": {
3737
"laravel/pint": "^1.4",
3838
"mockery/mockery": "^1.5.1",
39-
"pestphp/pest": "^1.0|^2.0|^3.0",
39+
"pestphp/pest": "^1.0|^2.0|^3.0|^4.0",
4040
"phpstan/phpstan": "^2.1.14"
4141
},
4242
"config": {
43-
"sort-packages": true,
4443
"allow-plugins": {
4544
"pestphp/pest-plugin": true
46-
}
45+
},
46+
"audit": {
47+
"block-insecure": false
48+
},
49+
"sort-packages": true
4750
},
4851
"scripts": {
4952
"lint": [

0 commit comments

Comments
 (0)