Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New db versions to test #269

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"schedule:earlyMondays"
],
}
40 changes: 26 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,37 +63,45 @@ jobs:
runs-on: ubuntu-latest

services:
mysql57:
image: mysql:5.7
# MySQL LTS versions tested (https://endoflife.date/mysql)
mysql80:
image: mysql:8.0
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping -ppass" --health-interval=10s --health-timeout=5s --health-retries=5 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=nextras_dbal_test --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --mysql-native-password=ON"
mysql84:
image: mysql:8.4
ports:
- 3307:3306
options: --health-cmd="mysqladmin ping -ppass" --health-interval=10s --health-timeout=5s --health-retries=5 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=nextras_dbal_test --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --mysql-native-password=ON"
# Latest 2 MariaDD LTS versions tested (https://endoflife.date/mariadb)
mariadb1011:
image: mariadb:10.11
env:
MYSQL_DATABASE: nextras_dbal_test
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
- 3308:3306
options: >-
--health-cmd "mysqladmin ping -ppass"
--health-interval 10s
--health-start-period 10s
--health-timeout 5s
--health-retries 10
mysql80:
image: mysql:8.0
ports:
- 3307:3306
options: --health-cmd="mysqladmin ping -ppass" --health-interval=10s --health-timeout=5s --health-retries=5 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=nextras_dbal_test --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --mysql-native-password=ON"
mariadb105:
image: mariadb:10.5
mariadb114:
image: mariadb:11.4
env:
MYSQL_DATABASE: nextras_dbal_test
MYSQL_ROOT_PASSWORD: root
ports:
- 3308:3306
- 3309:3306
options: >-
--health-cmd "mysqladmin ping -ppass"
--health-cmd "healthcheck.sh --su-mysql --connect --innodb_initialized"
--health-interval 10s
--health-start-period 10s
--health-timeout 5s
--health-retries 10
# Newest and last supported version (https://endoflife.date/postgresql)
postgres13:
image: postgres:13
env:
Expand All @@ -107,8 +115,8 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres16:
image: postgres:16
postgres17:
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -120,6 +128,7 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
# Latest only
mssql:
image: mcr.microsoft.com/mssql/server:latest
env:
Expand All @@ -142,6 +151,9 @@ jobs:
- name: Create MS SQL Database
run: docker exec -i mssql /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE nextras_dbal_test'

- name: Set up Timezones in MariaDB
run: docker exec $(docker ps -q --filter "ancestor=mariadb:11.4") bash -c "apt-get update && apt-get install -y tzdata && mariadb-tzinfo-to-sql /usr/share/zoneinfo | mariadb -u root -proot mysql"

- name: Setup PHP cache environment
id: php-extensions-cache
uses: shivammathur/cache-extensions@v1
Expand Down
32 changes: 24 additions & 8 deletions tests/databases.github.ini
Original file line number Diff line number Diff line change
@@ -1,51 +1,67 @@
[mysql 5.7]
[mysql 8.0]
driver = mysqli
host = "127.0.0.1"
database = nextras_dbal_test
username = root
password = root
port = 3306

[mysql 5.7pdo]
[mysql 8.0pdo]
driver = pdo_mysql
host = "127.0.0.1"
database = nextras_dbal_test
username = root
password = root
port = 3306

[mysql 8.0]
[mysql 8.4]
driver = mysqli
host = "127.0.0.1"
database = nextras_dbal_test
username = root
password = root
port = 3307

[mysql 8.0pdo]
[mysql 8.4pdo]
driver = pdo_mysql
host = "127.0.0.1"
database = nextras_dbal_test
username = root
password = root
port = 3307

[mysql mariadb105]
[mysql mariadb1011]
driver = mysqli
host = "127.0.0.1"
database = nextras_dbal_test
username = root
password = root
port = 3308

[mysql mariadb105pdo]
[mysql mariadb1011pdo]
driver = pdo_mysql
host = "127.0.0.1"
database = nextras_dbal_test
username = root
password = root
port = 3308

[mysql mariadb114]
driver = mysqli
host = "127.0.0.1"
database = nextras_dbal_test
username = root
password = root
port = 3309

[mysql mariadb114pdo]
driver = pdo_mysql
host = "127.0.0.1"
database = nextras_dbal_test
username = root
password = root
port = 3309

[pgsql 13]
driver = pgsql
host = "127.0.0.1"
Expand All @@ -62,15 +78,15 @@ username = postgres
password = postgres
port = 5432

[pgsql 16]
[pgsql 17]
driver = pgsql
host = "127.0.0.1"
database = nextras_dbal_test
username = postgres
password = postgres
port = 5433

[pgsql 16pdo]
[pgsql 17pdo]
driver = pdo_pgsql
host = "127.0.0.1"
database = nextras_dbal_test
Expand Down
Loading