Skip to content

Add MariaDB to the Github actions #10062

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
30 changes: 30 additions & 0 deletions .github/actions/test-mysql-extra/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test Extra MySQL/MariaDB
inputs:
runHost:
required: true
runPort:
required: true
runTestsParameters:
default: ''
required: false
runs:
using: composite
steps:
- shell: bash
run: |
set -x
export MYSQL_TEST_HOST=${{ inputs.runHost }}
export MYSQL_TEST_USER=root
export MYSQL_TEST_PASSWD=root
export MYSQL_TEST_PORT=${{ inputs.runPort }}
export PDO_MYSQL_TEST_DSN="mysql:host=${{ inputs.runHost }};dbname=test;port=${{ inputs.runPort }}"
export PDO_MYSQL_TEST_USER=root
export PDO_MYSQL_TEST_PASS=root
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
-j$(/usr/bin/nproc) \
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
--offline \
--show-diff \
--show-slow 1000 \
--set-timeout 120 \
ext/mysqli ext/pdo_mysql
14 changes: 14 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ jobs:
env:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: root
mariadbverylatest:
image: quay.io/mariadb-foundation/mariadb-devel:verylatest
ports:
- 3307:3306
env:
MARIADB_DATABASE: test
MARIADB_ROOT_PASSWORD: root
steps:
- name: git checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -195,6 +202,13 @@ jobs:
with:
runTestsParameters: >-
${{ matrix.run_tests_parameters }}
- name: Test Extra MariaDB (very latest)
uses: ./.github/actions/test-mysql-extra
with:
runHost: mariadbverylatest
runPort: ${{ job.services.mariadbverylatest.ports[3306] }}
runTestsParameters: >-
${{ matrix.run_tests_parameters }}
- name: Test Tracing JIT
uses: ./.github/actions/test-linux
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ jobs:
asan: true
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}"
runs-on: ubuntu-22.04
mariadblatest:
image: quay.io/mariadb-foundation/mariadb-devel:latest
ports:
- 3307:3306
env:
MARIADB_DATABASE: test
MARIADB_ROOT_PASSWORD: root
steps:
- name: git checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -133,6 +140,11 @@ jobs:
uses: ./.github/actions/test-linux
with:
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}
- name: Test Extra MariaDB (latest)
uses: ./.github/actions/test-mysql-extra
with:
runHost: mariadblatest
runPort: ${{ job.services.mariadblatest.ports[3306] }}
- name: Test Tracing JIT
uses: ./.github/actions/test-linux
with:
Expand Down