fb
This commit is contained in:
@@ -18,6 +18,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
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
|
- name: Cache SonarQube Cloud packages
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
@@ -36,6 +40,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.sonar/scanner
|
mkdir -p ~/.sonar/scanner
|
||||||
dotnet tool update dotnet-sonarscanner --tool-path ~/.sonar/scanner
|
dotnet tool update dotnet-sonarscanner --tool-path ~/.sonar/scanner
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore
|
||||||
- name: Build and analyze
|
- name: Build and analyze
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user