diff --git a/.github/workflows/check-cs.yml b/.github/workflows/check-cs.yml index 36baf9b..bedfba3 100644 --- a/.github/workflows/check-cs.yml +++ b/.github/workflows/check-cs.yml @@ -40,7 +40,9 @@ jobs: composer update --prefer-dist --no-suggest --no-progress --no-interaction - name: Check Code Style + id: phpcs run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml - name: Show PHPCS results in PR + if: ${{ always() && steps.phpcs.outcome == 'failure' }} run: cs2pr ./phpcs-report.xml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f5b5ac5..e8a426f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -89,7 +89,7 @@ jobs: - name: Install dependencies - ignore platform reqs if: ${{ matrix.php >= 8.3 }} run: | - composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs --no-interaction + composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-req=php+ --no-interaction - name: Execute Unit Tests run: vendor/bin/phpunit