Skip to content

Commit 8fa3384

Browse files
committed
test
1 parent be6b652 commit 8fa3384

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,8 @@ jobs:
2828
echo "✅ Found solution file: $SOLUTION_FILE"
2929
echo "SOLUTION_FILE=$SOLUTION_FILE" >> $GITHUB_ENV
3030
31-
- name: Restore dependencies
32-
run: dotnet restore "$SOLUTION_FILE"
33-
34-
- name: Build solution
35-
run: dotnet build "$SOLUTION_FILE" --configuration Debug
36-
37-
- name: Run tests and generate coverage
38-
run: |
39-
dotnet test --collect:"XPlat Code Coverage" --logger trx --results-directory ./TestResults/
31+
- name: Run tests with coverage
32+
run: dotnet test "$SOLUTION_FILE" --collect:"XPlat Code Coverage" --logger trx --results-directory ./TestResults/
4033

4134
- name: Upload test results (optional, for visibility)
4235
uses: actions/upload-artifact@v4
@@ -60,5 +53,5 @@ jobs:
6053
/d:sonar.verbose=true \
6154
/d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" \
6255
/d:sonar.login="${{ secrets.SONAR_TOKEN }}"
63-
dotnet build
56+
dotnet test "$SOLUTION_FILE" --no-build
6457
dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)