Skip to content

Commit

Permalink
Reducing eco impact.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-T committed Mar 24, 2024
1 parent ac1f00f commit db75389
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
## Quality checks
## PHP-CS-Fixer
- name: Cache Composer PHP-CS-FIXER packages
if: ${{ matrix.lexer-version == '~3.0.0' }}
id: composer-phpcsfixer-cache
uses: actions/cache@v4
with:
Expand All @@ -76,13 +77,16 @@ jobs:
${{ runner.os }}-phpcsfixer-
- name: Install PHP-CS-Fixer
if: ${{ matrix.lexer-version == '~3.0.0' }}
run: composer update --working-dir=quality/php-cs-fixer

- name: Run PHP-CS-Fixer
if: ${{ matrix.lexer-version == '~3.0.0' }}
run: ./quality/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=quality/php-cs-fixer/.php-cs-fixer.php --dry-run --allow-risky=yes

## PHP-MESS-DETECTOR
- name: Cache Composer PHP-MESS-DETECTOR packages
if: ${{ matrix.lexer-version == '~3.0.0' }}
id: composer-phpmd-cache
uses: actions/cache@v4
with:
Expand All @@ -91,14 +95,18 @@ jobs:
restore-keys: |
${{ runner.os }}-phpmd-
- name: Install PHP-MESS-DETECTOR
if: ${{ matrix.lexer-version == '~3.0.0' }}
run: composer update --working-dir=quality/php-mess-detector
- name: Run PHP-MESS-DETECTOR on lib directory
if: ${{ matrix.lexer-version == '~3.0.0' }}
run: ./quality/php-mess-detector/vendor/bin/phpmd lib text quality/php-mess-detector/ruleset.xml
- name: Run PHP-MESS-DETECTOR on tests directory
if: ${{ matrix.lexer-version == '~3.0.0' }}
run: ./quality/php-mess-detector/vendor/bin/phpmd tests text quality/php-mess-detector/test-ruleset.xml

## PHP-STAN
- name: Cache Composer PHP-STAN packages
if: ${{ matrix.lexer-version == '~3.0.0' }}
id: composer-php-stan-cache
uses: actions/cache@v4
with:
Expand All @@ -107,6 +115,8 @@ jobs:
restore-keys: |
${{ runner.os }}-php-stan-
- name: Install PHP-STAN
if: ${{ matrix.lexer-version == '~3.0.0' }}
run: composer update --working-dir=quality/php-stan
- name: Run PHP-STAN
if: ${{ matrix.lexer-version == '~3.0.0' }}
run: ./quality/php-stan/vendor/bin/phpstan analyse --configuration=quality/php-stan/php-stan.neon lib tests --error-format=table --no-progress --no-interaction --no-ansi --level=9 --memory-limit=256M -v

0 comments on commit db75389

Please sign in to comment.