Skip to content

Commit e81b64e

Browse files
authored
Add PHPUnit test coverage and SonarQube scan
1 parent a7cc8e1 commit e81b64e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,22 @@ jobs:
1818
with:
1919
php-version: '8.2'
2020
extensions: mbstring, json
21-
coverage: none
21+
coverage: xdebug
2222

2323
- name: Install Composer dependencies
2424
run: composer install --no-interaction --prefer-dist
2525

2626
- name: Run tests
2727
run: ./vendor/bin/pest
2828

29+
- name: Run tests with phpunit/phpunit
30+
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
31+
32+
- name: SonarQube Scan
33+
uses: SonarSource/sonarqube-scan-action@v6
34+
env:
35+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36+
2937
release:
3038
runs-on: ubuntu-latest
3139
needs: test

0 commit comments

Comments
 (0)