-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into split-debug
- Loading branch information
Showing
13 changed files
with
240 additions
and
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.gitignore' | ||
- '.gitattributes' | ||
- 'infection.json.dist' | ||
- 'psalm.xml' | ||
|
||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.gitignore' | ||
- '.gitattributes' | ||
- 'infection.json.dist' | ||
- 'psalm.xml' | ||
|
||
name: db-mariadb | ||
|
||
jobs: | ||
tests: | ||
name: PHP ${{ matrix.php }}-mariadb-${{ matrix.mariadb }} | ||
|
||
env: | ||
COMPOSER_ROOT_VERSION: 1.0.0 | ||
CURRENT_PACKAGE: db-mysql | ||
EXTENSIONS: pdo, pdo_mysql | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
|
||
php: | ||
- 8.0 | ||
- 8.1 | ||
- 8.2 | ||
|
||
mariadb: | ||
- mariadb:10.4 | ||
- mariadb:10.5 | ||
- mariadb:10.6 | ||
- mariadb:10.7 | ||
- mariadb:10.8 | ||
- mariadb:10.9 | ||
- mariadb:latest | ||
|
||
services: | ||
mysql: | ||
image: ${{ matrix.mariadb }} | ||
env: | ||
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 | ||
|
||
steps: | ||
- name: Checkout. | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install PHP with extensions. | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: ${{ env.EXTENSIONS }} | ||
ini-values: date.timezone='UTC' | ||
coverage: pcov | ||
|
||
- name: Update composer. | ||
run: composer self-update | ||
|
||
- name: Set environment variables pull request linux. | ||
uses: yiisoft/actions/db/environment-linux@master | ||
|
||
- name: Install db. | ||
uses: yiisoft/actions/db/subpackage-install@master | ||
with: | ||
BRANCH_NAME: ${{ env.BRANCH_NAME }} | ||
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} | ||
CURRENT_PACKAGE: ${{ env.CURRENT_PACKAGE }} | ||
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} | ||
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} | ||
|
||
- name: Run Mysql tests with phpunit and code coverage. | ||
run: vendor/bin/phpunit --testsuite Mysql --coverage-clover=coverage.xml --colors=always | ||
|
||
- name: Upload coverage to Codecov. | ||
if: matrix.php == '8.1' | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml |
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 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 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 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 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 |
---|---|---|
@@ -1,76 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" executionOrder="default" failOnRisky="true" failOnWarning="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"> | ||
<coverage> | ||
<include> | ||
<directory>./src</directory> | ||
</include> | ||
<exclude> | ||
<directory>./src/TestSupport</directory> | ||
<directory>./tests</directory> | ||
<directory>./vendor</directory> | ||
<file>./src/Command/CommandInterface.php</file> | ||
<file>./src/Command/ParamInterface.php</file> | ||
<file>./src/Connection/ConnectionInterface.php</file> | ||
<file>./src/Connection/ConnectionPoolInterface.php</file> | ||
<file>./src/Constraint/ConstraintSchemaInterface.php</file> | ||
<file>./src/Driver/DriverInterface.php</file> | ||
<file>./src/Driver/PDO/CommandPDOInterface.php</file> | ||
<file>./src/Driver/PDO/ConnectionPDOInterface.php</file> | ||
<file>./src/Driver/PDO/ConnectionPDOPoolInterface.php</file> | ||
<file>./src/Driver/PDO/PDODriverInterface.php</file> | ||
<file>./src/Expression/ExpressionBuilderInterface.php</file> | ||
<file>./src/Expression/ExpressionInterface.php</file> | ||
<file>./src/Profiler/ProfilerInterface.php</file> | ||
<file>./src/Query/BatchQueryResultInterface.php</file> | ||
<file>./src/Query/Data/DataReaderInterface.php</file> | ||
<file>./src/Query/QueryFunctionsInterface.php</file> | ||
<file>./src/Query/QueryInterface.php</file> | ||
<file>./src/Query/QueryPartsInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/BetweenColumnsConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/BetweenConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/ConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/ConjunctionConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/ExistConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/HashConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/InConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/LikeConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/NotConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/SimpleConditionInterface.php</file> | ||
<file>./src/QueryBuilder/DDLQueryBuilderInterface.php</file> | ||
<file>./src/QueryBuilder/DMLQueryBuilderInterface.php</file> | ||
<file>./src/QueryBuilder/DQLQueryBuilderInterface.php</file> | ||
<file>./src/QueryBuilder/QueryBuilderInterface.php</file> | ||
<file>./src/Schema/ColumnSchemaInterface.php</file> | ||
<file>./src/Schema/QuoterInterface.php</file> | ||
<file>./src/Schema/SchemaInterface.php</file> | ||
<file>./src/Schema/TableSchemaInterface.php</file> | ||
<file>./src/Transaction/TransactionInterface.php</file> | ||
</exclude> | ||
</coverage> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Db"> | ||
<directory>./tests/Db</directory> | ||
</testsuite> | ||
<testsuite name="ActiveRecord"> | ||
<directory>./vendor/yiisoft/active-record/tests/Driver</directory> | ||
</testsuite> | ||
<testsuite name="Mssql"> | ||
<directory>./vendor/yiisoft/db-mssql/tests</directory> | ||
</testsuite> | ||
<testsuite name="Mysql"> | ||
<directory>./vendor/yiisoft/db-mysql/tests</directory> | ||
</testsuite> | ||
<testsuite name="Oracle"> | ||
<directory>./vendor/yiisoft/db-oracle/tests</directory> | ||
</testsuite> | ||
<testsuite name="Pgsql"> | ||
<directory>./vendor/yiisoft/db-pgsql/tests</directory> | ||
</testsuite> | ||
<testsuite name="Sqlite"> | ||
<directory>./vendor/yiisoft/db-sqlite/tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
backupGlobals="false" | ||
colors="true" | ||
bootstrap="vendor/autoload.php" | ||
executionOrder="default" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" | ||
> | ||
<source> | ||
<include> | ||
<directory>./src</directory> | ||
</include> | ||
<exclude> | ||
<directory>./src/TestSupport</directory> | ||
<directory>./tests</directory> | ||
<directory>./vendor</directory> | ||
<file>./src/Command/CommandInterface.php</file> | ||
<file>./src/Command/ParamInterface.php</file> | ||
<file>./src/Connection/ConnectionInterface.php</file> | ||
<file>./src/Connection/ConnectionPoolInterface.php</file> | ||
<file>./src/Constraint/ConstraintSchemaInterface.php</file> | ||
<file>./src/Driver/DriverInterface.php</file> | ||
<file>./src/Driver/PDO/CommandPDOInterface.php</file> | ||
<file>./src/Driver/PDO/ConnectionPDOInterface.php</file> | ||
<file>./src/Driver/PDO/ConnectionPDOPoolInterface.php</file> | ||
<file>./src/Driver/PDO/PDODriverInterface.php</file> | ||
<file>./src/Expression/ExpressionBuilderInterface.php</file> | ||
<file>./src/Expression/ExpressionInterface.php</file> | ||
<file>./src/Profiler/ProfilerInterface.php</file> | ||
<file>./src/Query/BatchQueryResultInterface.php</file> | ||
<file>./src/Query/Data/DataReaderInterface.php</file> | ||
<file>./src/Query/QueryFunctionsInterface.php</file> | ||
<file>./src/Query/QueryInterface.php</file> | ||
<file>./src/Query/QueryPartsInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/BetweenColumnsConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/BetweenConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/ConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/ConjunctionConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/ExistConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/HashConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/InConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/LikeConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/NotConditionInterface.php</file> | ||
<file>./src/QueryBuilder/Condition/Interface/SimpleConditionInterface.php</file> | ||
<file>./src/QueryBuilder/DDLQueryBuilderInterface.php</file> | ||
<file>./src/QueryBuilder/DMLQueryBuilderInterface.php</file> | ||
<file>./src/QueryBuilder/DQLQueryBuilderInterface.php</file> | ||
<file>./src/QueryBuilder/QueryBuilderInterface.php</file> | ||
<file>./src/Schema/ColumnSchemaInterface.php</file> | ||
<file>./src/Schema/QuoterInterface.php</file> | ||
<file>./src/Schema/SchemaInterface.php</file> | ||
<file>./src/Schema/TableSchemaInterface.php</file> | ||
<file>./src/Transaction/TransactionInterface.php</file> | ||
</exclude> | ||
</source> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Db"> | ||
<directory>./tests/Db</directory> | ||
</testsuite> | ||
<testsuite name="ActiveRecord"> | ||
<directory>./vendor/yiisoft/active-record/tests/Driver</directory> | ||
</testsuite> | ||
<testsuite name="Mssql"> | ||
<directory>./vendor/yiisoft/db-mssql/tests</directory> | ||
</testsuite> | ||
<testsuite name="Mysql"> | ||
<directory>./vendor/yiisoft/db-mysql/tests</directory> | ||
</testsuite> | ||
<testsuite name="Oracle"> | ||
<directory>./vendor/yiisoft/db-oracle/tests</directory> | ||
</testsuite> | ||
<testsuite name="Pgsql"> | ||
<directory>./vendor/yiisoft/db-pgsql/tests</directory> | ||
</testsuite> | ||
<testsuite name="Sqlite"> | ||
<directory>./vendor/yiisoft/db-sqlite/tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
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 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
Oops, something went wrong.