Skip to content

Commit

Permalink
Update continous integration pipeline (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-goncalves-kununu authored Nov 18, 2024
1 parent 4360b71 commit c89a2ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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 }}

0 comments on commit c89a2ce

Please sign in to comment.