Skip to content

Commit 409b6ae

Browse files
authored
Merge pull request #13 from rufer7/develop
Update main
2 parents 35a0be0 + 6edf122 commit 409b6ae

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/quality.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
id: cache-sonar-scanner
3030
uses: actions/cache@v4
3131
with:
32-
path: .\.sonar\scanner
32+
path: ${{ runner.temp }}\scanner
3333
key: ${{ runner.os }}-sonar-scanner
3434
restore-keys: ${{ runner.os }}-sonar-scanner
3535
- name: Install SonarCloud scanner
3636
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
3737
shell: pwsh
3838
run: |
39-
New-Item -Path .\.sonar\scanner -ItemType Directory
40-
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
39+
New-Item -Path ${{ runner.temp }}\scanner -ItemType Directory
40+
dotnet tool update dotnet-sonarscanner --tool-path ${{ runner.temp }}\scanner
4141
- name: Install dotnet-coverage
4242
shell: pwsh
4343
run: |
@@ -50,7 +50,7 @@ jobs:
5050
run: |
5151
$ErrorActionPreference = "Stop"
5252
$PSNativeCommandUseErrorActionPreference = $true
53-
.\.sonar\scanner\dotnet-sonarscanner begin /k:"rufer7_github-sonarcloud-integration" /o:"rufer7" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.projectBaseDir="D:\a\github-sonarcloud-integration\github-sonarcloud-integration" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
53+
${{ runner.temp }}\scanner\dotnet-sonarscanner begin /k:"rufer7_github-sonarcloud-integration" /o:"rufer7" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.projectBaseDir="D:\a\github-sonarcloud-integration\github-sonarcloud-integration" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.terraform.provider.azure.version=3.100.0
5454
dotnet build .\src\ArbitrarySolution.sln --configuration Release
5555
dotnet-coverage collect 'dotnet test .\src\ArbitraryProject.Tests\ArbitraryProject.Tests.csproj' -f xml -o 'coverage.xml'
56-
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
56+
${{ runner.temp }}\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,3 +396,7 @@ FodyWeavers.xsd
396396

397397
# JetBrains Rider
398398
*.sln.iml
399+
400+
# Sonar
401+
# Uncomment the following line to avoid error message "There were errors in the dependency analysis" on the "Dependencies" tab in SoanrQube Cloud due to inclusion of scanner directory
402+
# .sonar/*

src/ArbitraryProject/ArbitraryProject.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
11+
<PackageReference Include="FluentAssertions" Version="8.6.0" />
1112
</ItemGroup>
1213

1314
<ItemGroup>

0 commit comments

Comments
 (0)