Skip to content

Commit

Permalink
[TASK] Disable progress % within Github Actions
Browse files Browse the repository at this point in the history
This change requieres `IS_ON_GITHUB_ACTIONS: 'true'` on `.github/workflows/*.yml` files.
  • Loading branch information
dkd-kaehm committed Jul 29, 2024
1 parent 89d9f0d commit 3963969
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches: [ main, release-13.0.x, release-12.0.x, release-11.6.x, release-11.5.x, task/*_compatibility ]

env:
IS_ON_GITHUB_ACTIONS: 'true'
CI_BUILD_DIRECTORY: '/home/runner/work/ext-solr/ext-solr/.Build'
LOCAL_IMAGE_NAME: 'solrci-image:latest'
LOCAL_CONTAINER_NAME: 'solrci-container'
Expand Down
9 changes: 8 additions & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

declare(strict_types=1);

$config = \TYPO3\CodingStandards\CsFixerConfig::create();
use TYPO3\CodingStandards\CsFixerConfig;

$config = CsFixerConfig::create();

if (getenv('IS_ON_GITHUB_ACTIONS') === 'true') {
$config = $config->setHideProgress(true);
}

$config
->addRules(
[
Expand Down
4 changes: 2 additions & 2 deletions Build/Test/cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi


echo "TYPO3 Coding Standards compliance: See https://github.com/TYPO3/coding-standards"
if ! composer t3:standards:fix -- --diff --verbose --dry-run && rm .php-cs-fixer.cache
if ! composer t3:standards:fix -- --diff --verbose --dry-run --show-progress=none && rm .php-cs-fixer.cache
then
echo "Some files are not compliant to TYPO3 Coding Standards"
echo "Please fix the files listed above."
Expand All @@ -45,7 +45,7 @@ fi

echo -e "\n\n"
echo "Run PHPStan analysis"
if ! composer tests:phpstan
if ! composer tests:phpstan -- --no-progress
then
EXIT_CODE=7
echo "Error during running the PHPStan analysis, please check and fix them."
Expand Down

0 comments on commit 3963969

Please sign in to comment.