From 7a8d32e1767bf3e6fd76a5b5a55505f772a691ef Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 5 Oct 2020 17:03:07 +0300 Subject: [PATCH] Add colors to CI (#18316) --- .github/workflows/build.yml | 8 ++++---- .github/workflows/ci-mysql.yml | 4 ++-- .github/workflows/ci-pgsql.yml | 4 ++-- package.json | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0498970..9bffc53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ name: build on: [push, pull_request] env: - DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader" + DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi" PHPUNIT_EXCLUDE_GROUP: mssql,oci,wincache,xcache,zenddata,cubrid jobs: @@ -86,15 +86,15 @@ jobs: - name: Install dependencies run: composer update $DEFAULT_COMPOSER_FLAGS - name: PHP Unit tests for PHP 7.1 - run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group oci,wincache,xcache,zenddata,cubrid + run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group oci,wincache,xcache,zenddata,cubrid --colors=always if: matrix.php == '7.1' - name: PHP Unit tests for PHP 7.2 - 7.4 - run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP + run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always env: PHPUNIT_EXCLUDE_GROUP: oci,wincache,xcache,zenddata,cubrid if: matrix.php == '7.4' || matrix.php == '7.3' || matrix.php == '7.2' - name: PHP Unit tests for PHP 5.4 - 7.0 - run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP + run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always if: matrix.php == '7.0' || matrix.php == '5.6' || matrix.php == '5.5' || matrix.php == '5.4' - name: Code coverage run: | diff --git a/.github/workflows/ci-mysql.yml b/.github/workflows/ci-mysql.yml index d7814d5..d204964 100644 --- a/.github/workflows/ci-mysql.yml +++ b/.github/workflows/ci-mysql.yml @@ -74,7 +74,7 @@ jobs: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- - name: Install dependencies with composer - run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader + run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi - name: Run mysql tests with phpunit - run: vendor/bin/phpunit --group mysql + run: vendor/bin/phpunit --group mysql --colors=always diff --git a/.github/workflows/ci-pgsql.yml b/.github/workflows/ci-pgsql.yml index 2d38181..9325ac2 100644 --- a/.github/workflows/ci-pgsql.yml +++ b/.github/workflows/ci-pgsql.yml @@ -78,7 +78,7 @@ jobs: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- - name: Install dependencies with composer - run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader + run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi - name: Run pgsql tests with phpunit - run: vendor/bin/phpunit --group pgsql + run: vendor/bin/phpunit --group pgsql --colors=always diff --git a/package.json b/package.json index 8596f2e..e102ef1 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "sinon": "^1.17.6" }, "scripts": { - "test": "./node_modules/.bin/mocha tests/js/tests/*.test.js --timeout 0" + "test": "./node_modules/.bin/mocha tests/js/tests/*.test.js --timeout 0 --colors" }, "repository": { "type": "git",