Skip to content

Commit 65077e5

Browse files
CI testing policy: MySQL 8.4 instead of 8.0 and 5.7; Explicit v15 & v18 Postgres
1 parent d547b6f commit 65077e5

2 files changed

Lines changed: 25 additions & 15 deletions

File tree

.github/workflows/tests.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,39 +35,45 @@ jobs:
3535
run: php vendor/bin/phpunit --stop-on-defect --testdox
3636
env:
3737
TEST_DB_ENGINE: sqlite
38-
- name: Run Tests [postgres]
38+
- name: Run Tests [postgres 15]
3939
run: php vendor/bin/phpunit --stop-on-defect --testdox
4040
env:
4141
TEST_DB_ENGINE: pgsql
42-
TEST_DB_PORT: ${{ job.services.postgres.ports[5432] }}
42+
TEST_DB_PORT: ${{ job.services.postgres15.ports[5432] }}
4343
TEST_DB_PASSWORD: postgres
44-
- name: Run Tests [mysql 5.7]
44+
- name: Run Tests [postgres 18]
4545
run: php vendor/bin/phpunit --stop-on-defect --testdox
4646
env:
47-
TEST_DB_ENGINE: mysql
48-
TEST_DB_PORT: ${{ job.services.mysql.ports[3306] }}
49-
- name: Run Tests [mysql 8.0]
47+
TEST_DB_ENGINE: pgsql
48+
TEST_DB_PORT: ${{ job.services.postgres18.ports[5432] }}
49+
TEST_DB_PASSWORD: postgres
50+
- name: Run Tests [mysql 8.4]
5051
run: php vendor/bin/phpunit --stop-on-defect --testdox
5152
env:
5253
TEST_DB_ENGINE: mysql
5354
TEST_DB_PORT: ${{ job.services.mysql8.ports[3306] }}
5455
services:
55-
mysql:
56-
image: mysql:5.7
56+
mysql8:
57+
image: mysql:8.4
5758
env:
5859
MYSQL_ALLOW_EMPTY_PASSWORD: yes
5960
MYSQL_DATABASE: vanilo_test
6061
ports:
6162
- 3306
62-
mysql8:
63-
image: mysql:8.0
63+
postgres15:
64+
image: postgres:15
6465
env:
65-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
66-
MYSQL_DATABASE: vanilo_test
66+
POSTGRES_PASSWORD: postgres
67+
POSTGRES_DB: vanilo_test
6768
ports:
68-
- 3306
69-
postgres:
70-
image: postgres
69+
- 5432
70+
options: >-
71+
--health-cmd pg_isready
72+
--health-interval 10s
73+
--health-timeout 5s
74+
--health-retries 5
75+
postgres18:
76+
image: postgres:18
7177
env:
7278
POSTGRES_PASSWORD: postgres
7379
POSTGRES_DB: vanilo_test

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
- Dropped PHP 8.3 support
99
- Dropped Laravel 10 & 11 support
1010
- Changed the minimum Laravel 12 version to v12.50
11+
- Dropped MySQL 5.7 support (it still works, but it is no longer included in the CI tests)
12+
- Dropped MySQL 8.0 support (it still works, but it is no longer included in the CI tests)
13+
- Added explicit MySQL 8.4 support (being actively tested against in the CI)
14+
- Changed the Postgres testing policy to use v15 and v18
1115

1216
## 5.x Series
1317

0 commit comments

Comments
 (0)