diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 7832f2b..e237dc9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -32,7 +32,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - coverage: xdebug + coverage: pcov - name: Install Composer Dependencies uses: ramsey/composer-install@v3 @@ -41,12 +41,13 @@ jobs: composer-options: "--prefer-stable" - name: Run PHPUnit - run: vendor/bin/phpunit + run: vendor/bin/phpunit --log-junit tests/.results/tests-junit.xml --coverage-clover tests/.results/tests-clover.xml - name: Upload coverage files uses: actions/upload-artifact@v4 with: name: ${{ github.job }}-${{ matrix.php-version }}-${{ matrix.dependencies }}-coverage + include-hidden-files: true path: tests/.results/ sonarcloud: @@ -70,7 +71,7 @@ jobs: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' tests-junit.xml - name: SonarCloud Scan - uses: sonarsource/sonarcloud-github-action@master + uses: sonarsource/sonarcloud-github-action@v3.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}