Skip to content

Commit ea5e4fd

Browse files
authored
[MAINTENANCE] - Move to PHP >= 8.0 (#31)
1 parent 5e622c9 commit ea5e4fd

22 files changed

+1873
-65
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ jobs:
1313
timeout-minutes: 10
1414
strategy:
1515
matrix:
16-
php-versions: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]
16+
php-versions: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
1717
name: PHP ${{ matrix.php-versions }} with MySQL 5.7 & Postgres 10
18+
env:
19+
MYSQL_HOST: 127.0.0.1
20+
POSTGRES_HOST: 127.0.0.1
1821

1922
services:
2023
mysql:
@@ -76,8 +79,11 @@ jobs:
7679
timeout-minutes: 10
7780
strategy:
7881
matrix:
79-
php-versions: [ '7.4', '8.0' ]
82+
php-versions: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
8083
name: PHP ${{ matrix.php-versions }} with MySQL 8.0 & Postgres 11
84+
env:
85+
MYSQL_HOST: 127.0.0.1
86+
POSTGRES_HOST: 127.0.0.1
8187

8288
services:
8389
mysql:

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,22 @@
1111
],
1212
"config": {
1313
"platform": {
14-
"php": "7.0"
14+
"php": "8.0"
1515
}
1616
},
1717
"require": {
18-
"php": ">=7.0",
18+
"php": ">=8.0",
1919
"ext-pdo": "*"
2020
},
2121
"autoload": {
2222
"psr-0": {"PicoDb": "lib/"}
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "6.5.14"
25+
"phpunit/phpunit": "^9.6"
2626
},
2727
"scripts": {
28-
"test": "phpunit tests"
28+
"docker:start": "docker compose up -d",
29+
"docker:stop": "docker compose down",
30+
"test": "docker compose run --rm php /app/vendor/bin/phpunit /app/tests"
2931
}
3032
}

0 commit comments

Comments
 (0)