Skip to content

Commit 237b7de

Browse files
authored
SonarQube
* ci fix * nuget pack fix, small updates and tests * sonarqube pipeline, small updates * nuget pack fix, small updates and tests * sonarqube ci * projectguid generated
1 parent 5a56988 commit 237b7de

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
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-engine-bombardier-net
20+
sonarProjectName: qatoolkit_qatoolkit-engine-bombardier-net
21+
sonarOrganization: qatoolkit
22+
dotnetBuildArguments: ./src/QAToolKit.Engine.Bombardier/QAToolKit.Engine.Bombardier.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.Engine.Bombardier/QAToolKit.Engine.Bombardier.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7+
<ProjectGuid>778988ae-c303-4738-a9d6-3dfb80a882ab</ProjectGuid>
8+
79
<!-- NuGet Metadata -->
810
<IsPackable>true</IsPackable>
911
<PackageVersion>$(Version)</PackageVersion>

0 commit comments

Comments
 (0)