Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Nov 28, 2024
1 parent 22c78dc commit 5c9d498
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/db-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

env:
COMPOSER_ROOT_VERSION: dev-master
EXTENSIONS: pdo, pdo_mysql, pdo_oci, pdo_pgsql, pdo_sqlite, pdo_sqlsrv-5.12
EXTENSIONS: pdo, pdo_mysql, pdo_oci, pdo_pgsql, pdo_sqlite, pdo_sqlsrv

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

Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
- name: Checkout.
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create MS SQL Database.
run: docker exec -i mssql /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'
Expand All @@ -95,7 +95,6 @@ jobs:
extensions: ${{ env.EXTENSIONS }}
ini-values: date.timezone='UTC'
coverage: pcov
tools: composer:v2, pecl

- name: Update composer.
run: composer self-update
Expand Down Expand Up @@ -164,7 +163,7 @@ jobs:
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}

- name: Run tests with phpunit with code coverage.
run: vendor/bin/phpunit --testsuite DbMigration --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations
run: vendor/bin/phpunit --testsuite=DbMigration --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations

- name: Upload coverage to Codecov.
if: matrix.php == '8.3'
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"Yiisoft\\Db\\Pgsql\\Tests\\": "vendor/yiisoft/db-pgsql/tests",
"Yiisoft\\Db\\Sqlite\\Tests\\": "vendor/yiisoft/db-sqlite/tests",
"Yiisoft\\Db\\Migration\\Tests\\": "vendor/yiisoft/db-migration/tests",
"Yiisoft\\Db\\Migration\\Tests\\ForTest\\": "vendor/yiisoft/db-migration/tests/Support",
"Yiisoft\\Db\\Migration\\Tests\\Support\\MigrationsExtra\\": [
"vendor/yiisoft/db-migration/tests/Support/MigrationsExtra",
"vendor/yiisoft/db-migration/tests/Support/MigrationsExtra2"
Expand Down

0 comments on commit 5c9d498

Please sign in to comment.