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
4 changes: 3 additions & 1 deletion .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- 'psalm.xml'

push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -34,4 +36,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2', '8.3', '8.4', '8.5']
48 changes: 33 additions & 15 deletions .github/workflows/mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- 'psalm.xml'

push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -32,34 +34,40 @@ jobs:
env:
extensions: pdo, pdo_mysql

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

strategy:
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.3

- 8.4
- 8.5
mariadb:
- mariadb:10.4
- mariadb:10.5
- mariadb:10.6
- mariadb:10.7
- mariadb:10.8
- mariadb:10.9
- mariadb:latest
include:
- php: 8.5
mariadb: mariadb:10.4
- php: 8.5
mariadb: mariadb:10.5
- php: 8.5
mariadb: mariadb:10.6
- php: 8.5
mariadb: mariadb:10.7
- php: 8.5
mariadb: mariadb:10.8
- php: 8.5
mariadb: mariadb:10.9

services:
mysql:
image: ${{ matrix.mariadb }}
env:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: true
MARIADB_ROOT_PASSWORD: ''
MARIADB_DATABASE: yiitest
MARIADB_DATABASE: translator-message-db-test
MARIADB_USER: yii
MARIADB_PASSWORD: 'q1w2e3r4'
ports:
- 3306:3306
options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -80,11 +88,21 @@ jobs:
- name: Update composer.
run: composer self-update

- name: Install db-mysql.
run: composer require yiisoft/db-mysql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Remove unused dependencies of DB drivers
run: composer remove --dev yiisoft/db-sqlite yiisoft/db-pgsql yiisoft/db-mssql yiisoft/db-oracle

- name: Install dependencies with composer
run: composer update --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
env:
ENVIRONMENT: ci
YII_MYSQL_DATABASE: translator-message-db-test
YII_MYSQL_HOST: 127.0.0.1
YII_MYSQL_PORT: 3306
YII_MYSQL_USER: yii
YII_MYSQL_PASSWORD: q1w2e3r4

- name: Upload coverage to Codecov.
if: matrix.php == '8.1'
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,21 @@ 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: 2019-latest
odbc-version: 18
flag: "-C"
- php: 8.3
- php: 8.5
mssql:
server: 2022-latest
odbc-version: 18
Expand All @@ -81,7 +83,7 @@ jobs:
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18

- name: Create MS SQL Database.
run: docker exec -i mssql /opt/mssql-tools${{ matrix.mssql.odbc-version }}/bin/sqlcmd ${{ matrix.mssql.flag }} -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'
run: docker exec -i mssql /opt/mssql-tools${{ matrix.mssql.odbc-version }}/bin/sqlcmd ${{ matrix.mssql.flag }} -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE [translator-message-db-test]'

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
Expand All @@ -95,11 +97,21 @@ jobs:
- name: Update composer.
run: composer self-update

- name: Install db-mssql.
run: composer require yiisoft/db-mssql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Remove unused dependencies of DB drivers
run: composer remove --dev yiisoft/db-sqlite yiisoft/db-mysql yiisoft/db-pgsql yiisoft/db-oracle

- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests with phpunit.
run: vendor/bin/phpunit --testsuite=Mssql --coverage-clover=coverage.xml --colors=always
env:
ENVIRONMENT: ci
YII_MSSQL_DATABASE: translator-message-db-test
YII_MSSQL_HOST: 127.0.0.1
YII_MSSQL_PORT: 1433
YII_MSSQL_USER: SA
YII_MSSQL_PASSWORD: YourStrong!Passw0rd

- name: Upload coverage to Codecov.
if: matrix.php == '8.3'
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
- 'psalm.xml'

push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'README.md'
Expand Down Expand Up @@ -38,16 +40,15 @@ jobs:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.5

services:
postgres:
image: postgres:15
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: yiitest
POSTGRES_DB: translator-message-db-test
POSTGRES_USER: yii
POSTGRES_PASSWORD: q1w2e3r4
ports:
- 5432:5432
options: --name=postgres --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -68,11 +69,20 @@ jobs:
- name: Update composer.
run: composer self-update

- name: Install db-pgsql.
run: composer require yiisoft/db-pgsql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Remove unused dependencies of DB drivers
run: composer remove --dev yiisoft/db-sqlite yiisoft/db-mysql yiisoft/db-mssql yiisoft/db-oracle

- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run infection.
run: |
vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --test-framework-options="--testsuite=Pgsql"
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
ENVIRONMENT: ci
YII_PGSQL_DATABASE: translator-message-db-test
YII_PGSQL_HOST: 127.0.0.1
YII_PGSQL_PORT: 5432
YII_PGSQL_USER: yii
YII_PGSQL_PASSWORD: q1w2e3r4
33 changes: 23 additions & 10 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- 'psalm.xml'

push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -32,29 +34,30 @@ jobs:
env:
extensions: pdo, pdo_mysql

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

strategy:
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.3

- 8.4
- 8.5
mysql:
- mysql:5.7
- mysql:latest
include:
- php: 8.5
mysql: mysql:5.7

services:
mysql:
image: ${{ matrix.mysql }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_PASSWORD: ''
MYSQL_DATABASE: yiitest
MYSQL_DATABASE: translator-message-db-test
MYSQL_USER: yii
MYSQL_PASSWORD: 'q1w2e3r4'
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -75,11 +78,21 @@ jobs:
- name: Update composer.
run: composer self-update

- name: Install db-mysql.
run: composer require yiisoft/db-mysql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Remove unused dependencies of DB drivers
run: composer remove --dev yiisoft/db-sqlite yiisoft/db-pgsql yiisoft/db-mssql yiisoft/db-oracle

- name: Install dependencies with composer
run: composer update --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
env:
ENVIRONMENT: ci
YII_MYSQL_DATABASE: translator-message-db-test
YII_MYSQL_HOST: 127.0.0.1
YII_MYSQL_PORT: 3306
YII_MYSQL_USER: yii
YII_MYSQL_PASSWORD: q1w2e3r4

- name: Upload coverage to Codecov.
if: matrix.php == '8.1'
Expand Down
34 changes: 24 additions & 10 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- 'psalm.xml'

push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -32,30 +34,32 @@ jobs:
env:
extensions: pdo, pdo_oci, oci8

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

strategy:
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.3

- 8.4
- 8.5
oracle:
- 18
- 21
include:
- php: 8.5
oracle: 18

services:
oci:
image: gvenzl/oracle-xe:${{ matrix.oracle }}
ports:
- 1521:1521
env:
ORACLE_DATABASE : yiitest
ORACLE_PASSWORD : root
ORACLE_RANDOM_PASSWORD: yes
ORACLE_DATABASE: translator_message_db_test
APP_USER: yii
APP_USER_PASSWORD: q1w2e3r4
options: >-
--name=oci
--health-cmd healthcheck.sh
Expand All @@ -79,11 +83,21 @@ jobs:
- name: Update composer.
run: composer self-update

- name: Install db-oracle.
run: composer require yiisoft/db-oracle --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Remove unused dependencies of DB drivers
run: composer remove --dev yiisoft/db-sqlite yiisoft/db-mysql yiisoft/db-pgsql yiisoft/db-mssql

- name: Install dependencies with composer
run: composer update --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
env:
ENVIRONMENT: ci
YII_ORACLE_DATABASE: translator_message_db_test
YII_ORACLE_HOST: localhost
YII_ORACLE_PORT: 1521
YII_ORACLE_USER: yii
YII_ORACLE_PASSWORD: q1w2e3r4

- name: Upload coverage to Codecov.
if: matrix.php == '8.1'
Expand Down
Loading