From ff91e2e17d23463ea0f6eb9ede0dbf43bda56148 Mon Sep 17 00:00:00 2001 From: Andre Padberg Date: Mon, 6 May 2024 15:10:03 +0200 Subject: [PATCH 1/2] added fetch depth and php version for scrutinizer --- .github/workflows/tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 458dd16..327bc4b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,6 +38,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 10 - name: Set up PHP Version ${{ matrix.php }} uses: shivammathur/setup-php@v2 @@ -75,7 +77,7 @@ jobs: .Build/bin/phpunit --coverage-filter Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests/Unit/ - name: Upload coverage results to Scrutinizer - if: matrix.typo3 == '^11.5' && matrix.php == '7.4' + if: matrix.typo3 == '^11.5' && matrix.php == '8.3' run: | wget https://scrutinizer-ci.com/ocular.phar php ocular.phar code-coverage:upload --format=php-clover unittest-coverage.clover From 6224567731e574148559d9ffc9e0b5574082782c Mon Sep 17 00:00:00 2001 From: Andre Padberg Date: Tue, 7 May 2024 10:03:11 +0200 Subject: [PATCH 2/2] fix pipeline --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 327bc4b..14d5dbb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,7 +77,7 @@ jobs: .Build/bin/phpunit --coverage-filter Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests/Unit/ - name: Upload coverage results to Scrutinizer + uses: sudo-bot/action-scrutinizer@latest if: matrix.typo3 == '^11.5' && matrix.php == '8.3' - run: | - wget https://scrutinizer-ci.com/ocular.phar - php ocular.phar code-coverage:upload --format=php-clover unittest-coverage.clover + with: + cli-args: "--format=php-clover .Build/reports/php_all_tests/coverage_clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"