mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
[CI] Backport usage of db service for 8.1
Nightly already uses them. We're running into port clashes otherwise. Closes GH-16647
This commit is contained in:
7
.github/actions/setup-x64/action.yml
vendored
7
.github/actions/setup-x64/action.yml
vendored
@@ -6,14 +6,7 @@ runs:
|
||||
run: |
|
||||
set -x
|
||||
|
||||
sudo service mysql start
|
||||
sudo service postgresql start
|
||||
sudo service slapd start
|
||||
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
|
||||
# Ensure local_infile tests can run.
|
||||
mysql -uroot -proot -e "SET GLOBAL local_infile = true"
|
||||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
|
||||
sudo -u postgres psql -c "CREATE DATABASE test;"
|
||||
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
|
||||
sudo locale-gen de_DE
|
||||
|
||||
|
||||
4
.github/actions/test-linux/action.yml
vendored
4
.github/actions/test-linux/action.yml
vendored
@@ -28,6 +28,10 @@ runs:
|
||||
export PDO_OCI_TEST_USER="system"
|
||||
export PDO_OCI_TEST_PASS="pass"
|
||||
export PDO_OCI_TEST_DSN="oci:dbname=localhost/XEPDB1;charset=AL32UTF8"
|
||||
export PGSQL_TEST_CONNSTR="host=localhost dbname=test port=5432 user=postgres password=postgres"
|
||||
if [[ -z "$PDO_PGSQL_TEST_DSN" ]]; then
|
||||
export PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres"
|
||||
fi
|
||||
export SKIP_IO_CAPTURE_TESTS=1
|
||||
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
|
||||
-d opcache.jit=${{ inputs.jitType }} \
|
||||
|
||||
16
.github/workflows/push.yml
vendored
16
.github/workflows/push.yml
vendored
@@ -43,6 +43,22 @@ env:
|
||||
jobs:
|
||||
LINUX_X64:
|
||||
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.3
|
||||
ports:
|
||||
- 3306:3306
|
||||
env:
|
||||
MYSQL_DATABASE: test
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
postgres:
|
||||
image: postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
env:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: test
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
||||
Reference in New Issue
Block a user