From 7d7c0011bbf14727f440e5917acca5ce6f131932 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 11 Dec 2021 10:33:00 +0100 Subject: [PATCH] Fixed references to test:api and test:api:ci inside composer.json and added missing driver for MS SQL --- .github/workflows/ci.yml | 2 +- composer.json | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67b5b6b5..051be99f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: with: php-version: ${{ matrix.php-version }} tools: composer - extensions: openswoole-4.8.1 + extensions: openswoole-4.8.1, pdo_sqlsrv-5.10.0beta2 coverage: pcov ini-values: pcov.directory=module - run: composer install --no-interaction --prefer-dist diff --git a/composer.json b/composer.json index 6364443a..b40d24ba 100644 --- a/composer.json +++ b/composer.json @@ -126,7 +126,7 @@ "test:ci": [ "@test:unit:ci", "@test:db", - "@test:api" + "@test:api:ci" ], "test:unit": "@php vendor/bin/phpunit --order-by=random --colors=always --coverage-php build/coverage-unit.cov --testdox", "test:unit:ci": "@test:unit --coverage-xml=build/coverage-unit/coverage-xml --log-junit=build/coverage-unit/junit.xml", @@ -146,7 +146,7 @@ "infect:ci:api": "@infect:ci:base --coverage=build/coverage-api --min-msi=80 --configuration=infection-api.json", "infect:ci": "@parallel infect:ci:unit infect:ci:db infect:ci:api", "infect:test": [ - "@parallel test:unit:ci test:db:sqlite:ci test:api", + "@parallel test:unit:ci test:db:sqlite:ci test:api:ci", "@infect:ci" ], "infect:test:unit": [ @@ -154,7 +154,7 @@ "@infect:ci:unit" ], "infect:test:api": [ - "@test:api", + "@test:api:ci", "@infect:ci:api" ], "swagger:validate": "php-openapi validate docs/swagger/swagger.json", @@ -171,6 +171,7 @@ "test:ci": "Runs all test suites, generating all needed reports and logs for CI envs", "test:unit": "Runs unit test suites", "test:unit:ci": "Runs unit test suites, generating all needed reports and logs for CI envs", + "test:unit:pretty": "Runs unit test suites and generates an HTML code coverage report", "test:db": "Runs database test suites on a SQLite, MySQL, MariaDB, PostgreSQL and MsSQL", "test:db:sqlite": "Runs database test suites on a SQLite database", "test:db:sqlite:ci": "Runs database test suites on a SQLite database, generating all needed reports and logs for CI envs", @@ -179,7 +180,7 @@ "test:db:postgres": "Runs database test suites on a PostgreSQL database", "test:db:ms": "Runs database test suites on a Miscrosoft SQL Server database", "test:api": "Runs API test suites", - "test:unit:pretty": "Runs unit test suites and generates an HTML code coverage report", + "test:api:ci": "Runs API test suites, and generates code coverage reports", "infect:ci": "Checks unit and db tests quality applying mutation testing with existing reports and logs", "infect:ci:unit": "Checks unit tests quality applying mutation testing with existing reports and logs", "infect:ci:db": "Checks db tests quality applying mutation testing with existing reports and logs",