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,15 +16,6 @@ jobs:
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONARQUBE_USER_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
with:
args: >
-Dsonar.projectVersion=1.0.0
-Dsonar.projectKey=${{ secrets.SONARQUBE_PROJECT_KEY }}
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
@ -34,3 +25,12 @@ jobs:
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:
SONAR_TOKEN: ${{ secrets.SONARQUBE_USER_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
with:
args: >
-Dsonar.projectVersion=1.0.0
-Dsonar.projectKey=${{ secrets.SONARQUBE_PROJECT_KEY }}

View file

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