Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vanguille committed Feb 6, 2025
1 parent 3c361d4 commit 4d67c6c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ jobs:
echo "SOLUTION_FILE=$SOLUTION_FILE" >> $GITHUB_ENV
- name: Run tests with coverage
run: dotnet test "$SOLUTION_FILE" --collect:"XPlat Code Coverage" --logger trx --results-directory ./TestResults/

run: |
dotnet test "$SOLUTION_FILE" --collect:"XPlat Code Coverage" --logger trx --results-directory ./TestResults/
- name: Upload test results (optional, for visibility)
uses: actions/upload-artifact@v4
with:
Expand All @@ -59,5 +60,7 @@ jobs:
/d:sonar.verbose=true \
/d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" \
/d:sonar.login="${{ secrets.SONAR_TOKEN }}"
dotnet test "$SOLUTION_FILE" --no-build
dotnet build "$SOLUTION_FILE" --configuration Debug
dotnet test "$SOLUTION_FILE" --no-build --collect:"XPlat Code Coverage" --logger trx --results-directory ./TestResults/
dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

0 comments on commit 4d67c6c

Please sign in to comment.