Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2']
['8.1', '8.2', '8.3', '8.4', '8.5']
61 changes: 39 additions & 22 deletions .github/workflows/mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'psalm.xml'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -27,38 +28,50 @@ concurrency:

jobs:
tests:
name: PHP ${{ matrix.php }}-${{ matrix.mariadb }}
name: PHP ${{ matrix.php }}-mariadb-${{ matrix.mariadb }}

env:
extensions: pdo, pdo_mysql
EXTENSIONS: pdo, pdo_mysql

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
max-parallel: 3
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.5

mariadb:
- mariadb:10.4
- mariadb:10.5
- mariadb:10.6
- mariadb:10.7
- mariadb:10.8
- mariadb:10.9
- mariadb:latest
- 10.4
- 10.5
- 10.6
- 10.7
- 10.8
- 10.9
- 10
- 11.0
- 11
- 12.0
- 12
- latest

include:
- php: 8.1
mariadb: latest
- php: 8.2
mariadb: latest
- php: 8.3
mariadb: latest
- php: 8.4
mariadb: latest

services:
mariadb:
image: ${{ matrix.mariadb }}
mysql:
image: mariadb:${{ matrix.mariadb }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_PASSWORD: ''
MYSQL_DATABASE: yiitest
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: true
MARIADB_ROOT_PASSWORD: ''
MARIADB_DATABASE: yiitest
ports:
- 3306:3306
options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -78,14 +91,18 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

- name: Install db-mysql.
run: composer require yiisoft/db-mysql:^1.0 --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
run: composer require yiisoft/db-mysql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests with phpunit.
run: vendor/bin/phpunit --testsuite=Mysql --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '8.1'
if: matrix.php == '8.5'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,26 @@ jobs:
- 8.1
- 8.2
- 8.3
- 8.4
- 8.5

mssql:
- server: 2025-latest
odbc-version: 18
flag: "-C"

include:
- php: 8.3
- php: 8.5
mssql:
server: 2017-latest
odbc-version: ''
flag: "-C"
- php: 8.3
- php: 8.5
mssql:
server: 2019-latest
odbc-version: 18
flag: "-C"
- php: 8.3
- php: 8.5
mssql:
server: 2022-latest
odbc-version: 18
Expand Down
38 changes: 28 additions & 10 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'psalm.xml'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -21,31 +22,44 @@ on:

name: mysql

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
name: PHP ${{ matrix.php }}-mysql-${{ matrix.mysql }}

env:
extensions: pdo, pdo_mysql

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
max-parallel: 2
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.5

mysql:
- mysql:5.7
- mysql:latest
- 5.7
- 8.4
- 9.5
- latest

include:
- php: 8.1
mysql: latest
- php: 8.2
mysql: latest
- php: 8.3
mysql: latest
- php: 8.4
mysql: latest

services:
mysql:
image: ${{ matrix.mysql }}
image: mysql:${{ matrix.mysql }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_PASSWORD: ''
Expand All @@ -69,14 +83,18 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

- name: Install db-mysql.
run: composer require yiisoft/db-mysql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests with phpunit.
run: vendor/bin/phpunit --testsuite=Mysql --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '8.1'
if: matrix.php == '8.5'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
30 changes: 23 additions & 7 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'psalm.xml'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -21,28 +22,39 @@ on:

name: oracle

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
name: PHP ${{ matrix.php }}-oracle-${{ matrix.oracle }}

env:
extensions: pdo, pdo_oci, oci8

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
max-parallel: 2
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.5

oracle:
- 18
- 21

include:
- php: 8.1
oracle: latest
- php: 8.2
oracle: latest
- php: 8.3
oracle: latest
- php: 8.4
oracle: latest

services:
oci:
image: gvenzl/oracle-xe:${{ matrix.oracle }}
Expand Down Expand Up @@ -74,14 +86,18 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

- name: Install db-oracle.
run: composer require yiisoft/db-oracle --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests with phpunit.
run: vendor/bin/phpunit --testsuite=Oracle --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '8.1'
if: matrix.php == '8.5'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
34 changes: 27 additions & 7 deletions .github/workflows/pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'psalm.xml'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -21,23 +22,24 @@ on:

name: pgsql

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }}

env:
extensions: pdo, pdo_pgsql

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
max-parallel: 3
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.5

pgsql:
- 9
Expand All @@ -47,6 +49,20 @@ jobs:
- 13
- 14
- 15
- 16
- 17
- 18
- latest

include:
- php: 8.1
pgsql: latest
- php: 8.2
pgsql: latest
- php: 8.3
pgsql: latest
- php: 8.4
pgsql: latest

services:
postgres:
Expand Down Expand Up @@ -75,14 +91,18 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

- name: Install db-pgsql.
run: composer require yiisoft/db-pgsql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests with phpunit.
run: vendor/bin/phpunit --testsuite=Pgsql --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '8.1'
if: matrix.php == '8.5'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.3']
['8.5']
Loading
Loading