-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Huge cleanup (PHP 8 only; prep. for long term support) (#151)
* huge cleanup * removed failing workflows for now * switch to mariadb 11.0 and show db config * mariadb 11.0 failed too; trying 10.5 * fixed bootstrap * 2. attempt * changed default table engine; fixed CI? * refinements * fixed failing tests * removed further PDOSQLite related code * salvaged old fixes and test * re-added workflows; refined README * refined adapter * fixed get DB version code; added coding style workflow * added DB specific adaptions * fixed getServerVersion calls * refined text * reformat README * README * removed outdated ENV variable * fixed coding style issue
- Loading branch information
Showing
118 changed files
with
1,597 additions
and
3,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: MariaDB 10.10 Tests | ||
|
||
on: push | ||
|
||
jobs: | ||
pdo-mysql: | ||
name: MariaDB 10.10 Tests - PHP ${{ matrix.php }} PDO mysql | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
DB_ADAPTER: pdo | ||
DB_PDO_PROTOCOL: mysql | ||
|
||
strategy: | ||
# if one of the matrix-entries break, all entries getting canceled. | ||
fail-fast: true | ||
matrix: | ||
php: | ||
- 8.0 | ||
- 8.1 | ||
- 8.2 | ||
- 8.3 | ||
|
||
services: | ||
testdb: | ||
image: mariadb:10.10 | ||
env: | ||
MYSQL_ROOT_PASSWORD: Pass123 | ||
MYSQL_DATABASE: arc2_test | ||
MYSQL_ALLOW_EMPTY_PASSWORD: false | ||
ports: | ||
- 3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=15s --health-timeout=3s --health-retries=4 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
ini-values: memory_limit=1G | ||
|
||
- name: Install Composer dependencies | ||
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader | ||
|
||
- name: Tests | ||
run: | | ||
vendor/bin/phpunit | ||
env: | ||
DB_PORT: ${{ job.services.testdb.ports[3306] }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: MariaDB 10.11 Tests | ||
|
||
on: push | ||
|
||
jobs: | ||
pdo-mysql: | ||
name: MariaDB 10.11 Tests - PHP ${{ matrix.php }} PDO mysql | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
DB_ADAPTER: pdo | ||
DB_PDO_PROTOCOL: mysql | ||
|
||
strategy: | ||
# if one of the matrix-entries break, all entries getting canceled. | ||
fail-fast: true | ||
matrix: | ||
php: | ||
- 8.0 | ||
- 8.1 | ||
- 8.2 | ||
- 8.3 | ||
|
||
services: | ||
testdb: | ||
image: mariadb:10.11 | ||
env: | ||
MYSQL_ROOT_PASSWORD: Pass123 | ||
MYSQL_DATABASE: arc2_test | ||
MYSQL_ALLOW_EMPTY_PASSWORD: false | ||
ports: | ||
- 3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=15s --health-timeout=3s --health-retries=4 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
ini-values: memory_limit=1G | ||
|
||
- name: Install Composer dependencies | ||
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader | ||
|
||
- name: Tests | ||
run: | | ||
vendor/bin/phpunit | ||
env: | ||
DB_PORT: ${{ job.services.testdb.ports[3306] }} |
Oops, something went wrong.