Skip to content
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
41 changes: 41 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# TS/JS-Files
[*.{ts,js}]
indent_size = 2

# JSON-Files
[*.json]
indent_size = 2

# YAML-Files
[*.{yaml,yml}]
indent_size = 2

# NEON-Files
[*.neon]
indent_size = 2

# TypoScript
[*.{typoscript,tsconfig}]
indent_size = 2

# XLF-Files
[*.xlf]
indent_style = tab

# .htaccess
[{_.htaccess,.htaccess}]
indent_style = tab
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.editorconfig export-ignore
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/Build/ export-ignore
/Tests/ export-ignore
80 changes: 80 additions & 0 deletions .github/workflows/tests11i3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: tests11i3

on:
push:
pull_request:
schedule:
- cron: '42 5 * * *'

jobs:
testsuite:
name: all tests
runs-on: ubuntu-20.04
strategy:
# This prevents cancellation of matrix job runs, if one or more already failed
# and let the remaining matrix jobs be executed anyway.
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s composerUpdate

- name: Composer validate
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s composerValidate

- name: Lint PHP
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s lint

- name: CGL
# php-cs-fixer has isues with php8.2, so avoid executing it with that php version.
if: ${{ matrix.php <= '8.1' }}
run: Build/Scripts/runTests.sh -t 11i3 -n -p ${{ matrix.php }} -s cgl

- name: phpstan
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s phpstan -e "--error-format=github"

- name: Unit Tests
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s unit

- name: Functional Tests with mariadb and mysqli
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -d mariadb -a mysqli -s functional

- name: Functional Tests with mariadb and pdo_mysql
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -d mariadb -a pdo_mysql -s functional

- name: Functional Tests with mysql and mysqli
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -d mysql -a mysqli -s functional

- name: Functional Tests with mysql and pdo_mysql
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -d mysql -a pdo_mysql -s functional

- name: Functional Tests with postgres
# v11 postgres functional disabled with PHP 8.2 since https://github.com/doctrine/dbal/commit/73eec6d882b99e1e2d2d937accca89c1bd91b2d7
# is not fixed in doctrine core v11 doctrine 2.13.9
if: ${{ matrix.php <= '8.1' }}
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -d postgres -s functional

- name: Functional Tests with sqlite
run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -d sqlite -s functional

# - name: Acceptance Tests mariadb and mysqli
# run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s acceptance -d mariadb -a mysqli
#
# - name: Acceptance Tests mariadb and pdo_mysql
# run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s acceptance -d mariadb -a pdo_mysql
#
# - name: Acceptance Tests mysql and mysqli
# run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s acceptance -d mysql -a mysqli
#
# - name: Acceptance Tests mysql and pdo_mysql
# run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s acceptance -d mysql -a pdo_mysql
#
# - name: Acceptance Tests postgres
# # v11 postgres acceptance disabled with PHP 8.2 since https://github.com/doctrine/dbal/commit/73eec6d882b99e1e2d2d937accca89c1bd91b2d7
# # is not fixed in doctrine core v11 doctrine 2.13.9
# if: ${{ matrix.php <= '8.1' }}
# run: Build/Scripts/runTests.sh -t 11i3 -p ${{ matrix.php }} -s acceptance -d postgres
80 changes: 80 additions & 0 deletions .github/workflows/tests11i4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: tests11i4

on:
push:
pull_request:
schedule:
- cron: '42 5 * * *'

jobs:
testsuite:
name: all tests
runs-on: ubuntu-20.04
strategy:
# This prevents cancellation of matrix job runs, if one or more already failed
# and let the remaining matrix jobs be executed anyway.
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s composerUpdate

- name: Composer validate
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s composerValidate

- name: Lint PHP
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s lint

- name: CGL
# php-cs-fixer has isues with php8.2, so avoid executing it with that php version.
if: ${{ matrix.php <= '8.1' }}
run: Build/Scripts/runTests.sh -t 11i4 -n -p ${{ matrix.php }} -s cgl

- name: phpstan
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s phpstan -e "--error-format=github"

- name: Unit Tests
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s unit

- name: Functional Tests with mariadb and mysqli
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -d mariadb -a mysqli -s functional

- name: Functional Tests with mariadb and pdo_mysql
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -d mariadb -a pdo_mysql -s functional

- name: Functional Tests with mysql and mysqli
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -d mysql -a mysqli -s functional

- name: Functional Tests with mysql and pdo_mysql
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -d mysql -a pdo_mysql -s functional

- name: Functional Tests with postgres
# v11 postgres functional disabled with PHP 8.2 since https://github.com/doctrine/dbal/commit/73eec6d882b99e1e2d2d937accca89c1bd91b2d7
# is not fixed in doctrine core v11 doctrine 2.13.9
if: ${{ matrix.php <= '8.1' }}
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -d postgres -s functional

- name: Functional Tests with sqlite
run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -d sqlite -s functional

# - name: Acceptance Tests mariadb and mysqli
# run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s acceptance -d mariadb -a mysqli
#
# - name: Acceptance Tests mariadb and pdo_mysql
# run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s acceptance -d mariadb -a pdo_mysql
#
# - name: Acceptance Tests mysql and mysqli
# run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s acceptance -d mysql -a mysqli
#
# - name: Acceptance Tests mysql and pdo_mysql
# run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s acceptance -d mysql -a pdo_mysql
#
# - name: Acceptance Tests postgres
# # v11 postgres acceptance disabled with PHP 8.2 since https://github.com/doctrine/dbal/commit/73eec6d882b99e1e2d2d937accca89c1bd91b2d7
# # is not fixed in doctrine core v11 doctrine 2.13.9
# if: ${{ matrix.php <= '8.1' }}
# run: Build/Scripts/runTests.sh -t 11i4 -p ${{ matrix.php }} -s acceptance -d postgres
80 changes: 80 additions & 0 deletions .github/workflows/tests12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: tests12

on:
push:
pull_request:
schedule:
- cron: '42 5 * * *'

jobs:
testsuite:
name: all tests
runs-on: ubuntu-20.04
strategy:
# This prevents cancellation of matrix job runs, if one or more already failed
# and let the remaining matrix jobs be executed anyway.
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s composerUpdate

- name: Composer validate
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s composerValidate

- name: Lint PHP
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s lint

- name: CGL
# php-cs-fixer has isues with php8.2, so avoid executing it with that php version.
if: ${{ matrix.php <= '8.1' }}
run: Build/Scripts/runTests.sh -t 12 -n -p ${{ matrix.php }} -s cgl

- name: phpstan
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s phpstan -e "--error-format=github"

- name: Unit Tests
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s unit

- name: Functional Tests with mariadb and mysqli
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -d mariadb -a mysqli -s functional

- name: Functional Tests with mariadb and pdo_mysql
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -d mariadb -a pdo_mysql -s functional

- name: Functional Tests with mysql and mysqli
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -d mysql -a mysqli -s functional

- name: Functional Tests with mysql and pdo_mysql
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -d mysql -a pdo_mysql -s functional

- name: Functional Tests with postgres
# v11 postgres functional disabled with PHP 8.2 since https://github.com/doctrine/dbal/commit/73eec6d882b99e1e2d2d937accca89c1bd91b2d7
# is not fixed in doctrine core v11 doctrine 2.13.9
if: ${{ matrix.php <= '8.1' }}
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -d postgres -s functional

- name: Functional Tests with sqlite
run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -d sqlite -s functional

# - name: Acceptance Tests mariadb and mysqli
# run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s acceptance -d mariadb -a mysqli
#
# - name: Acceptance Tests mariadb and pdo_mysql
# run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s acceptance -d mariadb -a pdo_mysql
#
# - name: Acceptance Tests mysql and mysqli
# run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s acceptance -d mysql -a mysqli
#
# - name: Acceptance Tests mysql and pdo_mysql
# run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s acceptance -d mysql -a pdo_mysql
#
# - name: Acceptance Tests postgres
# # v11 postgres acceptance disabled with PHP 8.2 since https://github.com/doctrine/dbal/commit/73eec6d882b99e1e2d2d937accca89c1bd91b2d7
# # is not fixed in doctrine core v11 doctrine 2.13.9
# if: ${{ matrix.php <= '8.1' }}
# run: Build/Scripts/runTests.sh -t 12 -p ${{ matrix.php }} -s acceptance -d postgres
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.Build/
.idea/
Build/testing-docker/.env
/var
composer.json.testing
composer.lock
# Ignore files generated by tests
Tests/Acceptance/Support/_generated/
/favicon.ico
/.php-cs-fixer.cache
Loading