Skip to content

Commit aefe447

Browse files
libraries updates. (#32)
* libraries updates. * Fixes.
1 parent 181b871 commit aefe447

File tree

6 files changed

+72
-8
lines changed

6 files changed

+72
-8
lines changed

.github/workflows/qi.yaml .github/qi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ jobs:
6262
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6363
shell: powershell
6464
run: |
65-
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
65+
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
File renamed without changes.

Peppermint.ReverseProxy.sln

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "2. tests", "2. tests", "{0F
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "9. deployment", "9. deployment", "{79D5667C-14B1-4D86-B1FD-9A1F1E318057}"
1515
ProjectSection(SolutionItems) = preProject
16-
.github\workflows\pipeline.yml = .github\workflows\pipeline.yml
17-
.github\workflows\pr.yaml = .github\workflows\pr.yaml
18-
.github\workflows\qi.yml = .github\workflows\qi.yml
16+
.github\workflows\pipeline.yaml = .github\workflows\pipeline.yaml
17+
qi.yaml = qi.yaml
1918
.github\workflows\release.yaml = .github\workflows\release.yaml
2019
EndProjectSection
2120
EndProject

qi.yaml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: QI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
analysis:
12+
runs-on: windows-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v2
17+
with:
18+
dotnet-version: 8.0.x
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.17
23+
- name: Cache SonarCloud packages
24+
uses: actions/cache@v1
25+
with:
26+
path: ~\sonar\cache
27+
key: ${{ runner.os }}-sonar
28+
restore-keys: ${{ runner.os }}-sonar
29+
- name: Cache SonarCloud scanner
30+
id: cache-sonar-scanner
31+
uses: actions/cache@v1
32+
with:
33+
path: .\.sonar\scanner
34+
key: ${{ runner.os }}-sonar-scanner
35+
restore-keys: ${{ runner.os }}-sonar-scanner
36+
- name: Install SonarCloud scanner
37+
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
38+
shell: powershell
39+
run: |
40+
New-Item -Path .\.sonar\scanner -ItemType Directory
41+
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
42+
dotnet tool install --global dotnet-coverage
43+
- name: Begin Analyze
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
46+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
47+
shell: powershell
48+
run: |
49+
.\.sonar\scanner\dotnet-sonarscanner begin /k:"alexandrejulien_Peppermint.ReverseProxy" /o:"alexandrejulien" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
50+
- name: Restore dependencies
51+
run: dotnet restore ./Peppermint.ReverseProxy.sln
52+
- name: Build
53+
run: dotnet build ./Peppermint.ReverseProxy.sln --no-restore --configuration Debug
54+
- name: Test
55+
shell: powershell
56+
run: |
57+
dotnet tool install --global dotnet-coverage
58+
dotnet-coverage collect 'dotnet test Peppermint.ReverseProxy.sln' -f xml -o 'coverage.xml'
59+
- name: End Analyze
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
63+
shell: powershell
64+
run: |
65+
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.5" />
23+
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
2424
<PackageReference Include="Serilog.AspNetCore" Version="8.0.0" />
2525
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
2626
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.0" />
27-
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.12.0.78982">
27+
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.16.0.82469">
2828
<PrivateAssets>all</PrivateAssets>
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
</PackageReference>

tests/Peppermint.ReverseProxy.Tests/Peppermint.ReverseProxy.Tests.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.0" />
28+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.1" />
2929
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
3030
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
3131
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
32-
<PackageReference Include="NFluent" Version="3.0.1.352" />
32+
<PackageReference Include="NFluent" Version="3.0.3" />
3333
<PackageReference Include="coverlet.collector" Version="6.0.0">
3434
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3535
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)