This commit is contained in:
@@ -10,13 +10,27 @@ on:
|
||||
jobs:
|
||||
sonarqube:
|
||||
name: SonarQube Trigger
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # Disables shallow clone for more accurate blame/analysis data
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '10.0.x'
|
||||
|
||||
- name: Restore Dependencies
|
||||
run: dotnet restore Dotnet.Samples.AspNetCore.WebApi.sln
|
||||
|
||||
- name: Build Solution
|
||||
run: dotnet build Dotnet.Samples.AspNetCore.WebApi.sln --no-restore
|
||||
|
||||
- name : Run Tests
|
||||
run: dotnet test Dotnet.Samples.AspNetCore.WebApi.sln --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./TestResults
|
||||
|
||||
- name: Run SonarQube Scanner
|
||||
uses: sonarsource/sonarqube-scan-action@v6
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user