This commit is contained in:
Leonid Pershin
2025-10-17 01:38:09 +03:00
parent 768b68e10e
commit 187c123ac4

View File

@@ -18,6 +18,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Cache SonarQube Cloud packages
uses: actions/cache@v4
with:
@@ -36,6 +40,8 @@ jobs:
run: |
mkdir -p ~/.sonar/scanner
dotnet tool update dotnet-sonarscanner --tool-path ~/.sonar/scanner
- name: Restore dependencies
run: dotnet restore
- name: Build and analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}