Skip to content

Commit

Permalink
Merge pull request #8 from icings/update-test-matrix
Browse files Browse the repository at this point in the history
Add PHP 8.1 to the test matrix.
  • Loading branch information
ndm2 authored Dec 21, 2021
2 parents 58adf00 + 7bc305e commit 0f746e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
db-type: [sqlite, mysql, mariadb, pgsql, sqlsrv]
php-version: ['7.2', '7.4', '8.0']
php-version: ['7.2', '7.4', '8.0', '8.1']
cakephp-version: ['4.1.0', '4.2.0', 'latest']
exclude:
- php-version: '7.2'
Expand All @@ -26,10 +26,16 @@ jobs:
cakephp-version: '4.1.0'
- php-version: '8.0'
cakephp-version: '4.1.0'
- php-version: '8.1'
cakephp-version: '4.1.0'
- php-version: '7.4'
cakephp-version: '4.2.0'
- php-version: '8.0'
cakephp-version: '4.2.0'
- php-version: '8.1'
cakephp-version: '4.2.0'
- php-version: '8.1'
db-type: 'sqlsrv'

name: |
${{
Expand Down
7 changes: 6 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@
if (!getenv('DATABASE_URL')) {
putenv('DATABASE_URL=sqlite:///:memory:');
}
ConnectionManager::setConfig('test', ['url' => getenv('DATABASE_URL')]);
ConnectionManager::setConfig('test', [
'url' => getenv('DATABASE_URL'),
'flags' => [
PDO::ATTR_STRINGIFY_FETCHES => true,
],
]);

0 comments on commit 0f746e3

Please sign in to comment.