Add coverage tests

This commit is contained in:
Cody Cook 2024-05-14 09:05:31 -07:00
commit 46acc6ea17
2 changed files with 10 additions and 10 deletions

View file

@ -16,6 +16,15 @@ jobs:
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: xdebug
- name: Install dependencies with composer
run: composer update --no-ansi --no-interaction --no-progress
- name: Run tests with phpunit/phpunit
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
@ -25,12 +34,3 @@ jobs:
args: >
-Dsonar.projectVersion=1.0.0
-Dsonar.projectKey=${{ secrets.SONARQUBE_PROJECT_KEY }}
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: xdebug
- name: Install dependencies with composer
run: composer update --no-ansi --no-interaction --no-progress
- name: Run tests with phpunit/phpunit
run: vendor/bin/phpunit --coverage-clover=coverage.xml

View file

@ -1,7 +1,7 @@
{
"name": "utahsdjs/utahsdjs2025",
"description": "description",
"minimum-stability": "unstable",
"minimum-stability": "dev",
"version": "0.0.1",
"license": "proprietary",
"authors": [