This commit is contained in:
@@ -13,10 +13,24 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Disables shallow clone for more accurate blame/analysis data
|
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
|
- name: Run SonarQube Scanner
|
||||||
uses: sonarsource/sonarqube-scan-action@v6
|
uses: sonarsource/sonarqube-scan-action@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user