Skip to content

Commit a2324b8

Browse files
Merge pull request #2 from softwareone-platform/feature/setup-actions
Setup Sonar Cloud actions
2 parents 405b539 + 3f0364f commit a2324b8

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

.github/workflows/build.yaml renamed to .github/workflows/sonar.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: .NET Build and Test
1+
name: Sonar Cloud Analysis
22

33
on:
44
push:
@@ -58,7 +58,7 @@ jobs:
5858
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5959
shell: bash
6060
run: |
61-
.sonar/scanner/dotnet-sonarscanner begin /k:"YOUR_PROJECT_KEY" /o:"YOUR_ORGANIZATION" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml"
61+
.sonar/scanner/dotnet-sonarscanner begin /k:"softwareone-platform_mpt-rql-net" /o:"softwareone-mpt-github" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml"
6262
6363
- name: Build
6464
run: dotnet build --no-restore --configuration Release

SoftwareOne.Rql.sln

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,19 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Rql.Sample.Domain", "sample
3535
EndProject
3636
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Rql.Sample.Infrastructure", "samples\Rql.Sample.Infrastructure\Rql.Sample.Infrastructure.csproj", "{CFFB44E6-0321-480B-B258-9B9A22D3D0CD}"
3737
EndProject
38-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "pipelines", "pipelines", "{73947017-5B82-4F5D-A273-142E0B58AEC4}"
39-
ProjectSection(SolutionItems) = preProject
40-
pipelines\build.ps1 = pipelines\build.ps1
41-
pipelines\rql-test.yaml = pipelines\rql-test.yaml
42-
EndProjectSection
43-
EndProject
44-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "templates", "templates", "{4B53A37B-A23C-46F6-B53E-54F6017D0541}"
45-
ProjectSection(SolutionItems) = preProject
46-
pipelines\templates\build_and_pack.yaml = pipelines\templates\build_and_pack.yaml
47-
pipelines\templates\run_tests.yaml = pipelines\templates\run_tests.yaml
48-
pipelines\templates\sonar_cloud_prepare.yaml = pipelines\templates\sonar_cloud_prepare.yaml
49-
pipelines\templates\use_dotnet_steps.yaml = pipelines\templates\use_dotnet_steps.yaml
50-
EndProjectSection
51-
EndProject
5238
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoftwareOne.Rql.Parsers.Linear.UnitTests", "tests\SoftwareOne.Rql.Parsers.Linear.UnitTests\SoftwareOne.Rql.Parsers.Linear.UnitTests.csproj", "{56074B20-CCE8-448A-B116-ACC5BFBC54E5}"
5339
EndProject
5440
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoftwareOne.UnitTests.Common", "tests\SoftwareOne.UnitTests.Common\SoftwareOne.UnitTests.Common.csproj", "{7CD68018-2867-4169-AD97-514DBBEFB52A}"
5541
EndProject
5642
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoftwareOne.Rql.Linq.UnitTests", "tests\SoftwareOne.Rql.Linq.UnitTests\SoftwareOne.Rql.Linq.UnitTests.csproj", "{E66632A3-4C40-4489-80F6-6BCF1F5B19B8}"
5743
EndProject
44+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
45+
EndProject
46+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{DDFA7176-50DA-479F-AC5A-06EE6728F0C2}"
47+
ProjectSection(SolutionItems) = preProject
48+
.github\workflows\sonar.yaml = .github\workflows\sonar.yaml
49+
EndProjectSection
50+
EndProject
5851
Global
5952
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6053
Debug|Any CPU = Debug|Any CPU
@@ -123,11 +116,11 @@ Global
123116
{F0F12C1B-3DDE-4EDD-B632-FDFEF106AC31} = {AEFB19FB-136A-4DAF-BBB0-F864315A9D0F}
124117
{50026E65-689A-402A-B2CA-C7A71A000E12} = {AEFB19FB-136A-4DAF-BBB0-F864315A9D0F}
125118
{CFFB44E6-0321-480B-B258-9B9A22D3D0CD} = {AEFB19FB-136A-4DAF-BBB0-F864315A9D0F}
126-
{73947017-5B82-4F5D-A273-142E0B58AEC4} = {F624E774-7C26-40D1-BCBA-1574F88B28D5}
127-
{4B53A37B-A23C-46F6-B53E-54F6017D0541} = {73947017-5B82-4F5D-A273-142E0B58AEC4}
128119
{56074B20-CCE8-448A-B116-ACC5BFBC54E5} = {D980A974-8FE2-479D-B67E-E544F3904994}
129120
{7CD68018-2867-4169-AD97-514DBBEFB52A} = {D980A974-8FE2-479D-B67E-E544F3904994}
130121
{E66632A3-4C40-4489-80F6-6BCF1F5B19B8} = {D980A974-8FE2-479D-B67E-E544F3904994}
122+
{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {F624E774-7C26-40D1-BCBA-1574F88B28D5}
123+
{DDFA7176-50DA-479F-AC5A-06EE6728F0C2} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
131124
EndGlobalSection
132125
GlobalSection(ExtensibilityGlobals) = postSolution
133126
SolutionGuid = {A3AD745F-6707-49CB-8A5B-301F8D55333A}

0 commit comments

Comments
 (0)