Skip to content

Commit 23cee53

Browse files
authored
SonarQube
* ci fixed * sonar qube pipeline, small updates * sonar qube pipeline, small updates * projectguid generated
1 parent 8bca2ad commit 23cee53

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup .NET Core
2222
uses: actions/setup-dotnet@v1
2323
with:
24-
dotnet-version: 3.1.301
24+
dotnet-version: 3.1.403
2525
- name: Install dependencies
2626
run: dotnet restore
2727
- name: Build
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Sonarqube Analyze
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
sonarcloud:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
# Disabling shallow clone is recommended for improving relevancy of reporting
15+
fetch-depth: 0
16+
- name: SonarScanner for .NET Core with pull request decoration support
17+
uses: highbyte/sonarscan-dotnet@1.0
18+
with:
19+
sonarProjectKey: qatoolkit_qatoolkit-source-swagger-net
20+
sonarProjectName: qatoolkit_qatoolkit-source-swagger-net
21+
sonarOrganization: qatoolkit
22+
dotnetBuildArguments: ./src/QAToolKit.Source.Swagger/QAToolKit.Source.Swagger.csproj
23+
dotnetDisableTests: true
24+
# Optional extra command arguments the the SonarScanner 'begin' command
25+
sonarBeginArguments: /d:sonar.verbose="true" /d:sonar.language="cs"
26+
sonarHostname: "https://sonarcloud.io"
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

src/QAToolKit.Source.Swagger/QAToolKit.Source.Swagger.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<LangVersion>latest</LangVersion>
7+
<ProjectGuid>ee940718-945a-4c34-8ce6-0790972ada44</ProjectGuid>
78

89
<!-- NuGet Metadata -->
910
<IsPackable>true</IsPackable>
1011
<PackageVersion>$(Version)</PackageVersion>
1112
<PackageId>QAToolKit.Source.Swagger</PackageId>
12-
<Authors>QAToolKit</Authors>
13+
<Authors>Miha Jakovac</Authors>
1314
<Description>
1415
QAToolKit Swagger library, that parses Swagger files and produces a common list of HTTP requests.
1516
</Description>
@@ -33,7 +34,6 @@
3334
</ItemGroup>
3435

3536
<ItemGroup>
36-
<PackageReference Include="Faker.Net" Version="1.3.82" />
3737
<PackageReference Include="Microsoft.OpenApi" Version="1.2.3" />
3838
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.2.3" />
3939
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />

0 commit comments

Comments
 (0)