File tree Expand file tree Collapse file tree 5 files changed +53
-6
lines changed
Expand file tree Collapse file tree 5 files changed +53
-6
lines changed Original file line number Diff line number Diff line change 1+ name : SonarQube
2+ on :
3+ push :
4+ branches :
5+ - main
6+ - feat/add-color-parameters
7+ pull_request :
8+ types : [opened, synchronize, reopened]
9+ jobs :
10+ build :
11+ name : Build and analyze
12+ runs-on : windows-latest
13+ steps :
14+ - name : Set up JDK 17
15+ uses : actions/setup-java@v4
16+ with :
17+ java-version : 17
18+ distribution : ' zulu' # Alternative distribution options are available.
19+ - uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
22+ - name : Cache SonarQube Cloud packages
23+ uses : actions/cache@v4
24+ with :
25+ path : ~\sonar\cache
26+ key : ${{ runner.os }}-sonar
27+ restore-keys : ${{ runner.os }}-sonar
28+ - name : Cache SonarQube Cloud scanner
29+ id : cache-sonar-scanner
30+ uses : actions/cache@v4
31+ with :
32+ path : .\.sonar\scanner
33+ key : ${{ runner.os }}-sonar-scanner
34+ restore-keys : ${{ runner.os }}-sonar-scanner
35+ - name : Install SonarQube Cloud scanner
36+ if : steps.cache-sonar-scanner.outputs.cache-hit != 'true'
37+ shell : powershell
38+ run : |
39+ New-Item -Path .\.sonar\scanner -ItemType Directory
40+ dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
41+ - name : Build and analyze
42+ env :
43+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
44+ shell : powershell
45+ run : |
46+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"ashtonav_opencaptcha" /o:"ashtonav" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
47+ dotnet build
48+ .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net10 .0</TargetFramework >
4+ <TargetFramework >net8 .0</TargetFramework >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77 <RootNamespace >Captcha.Core</RootNamespace >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >net10 .0</TargetFramework >
4+ <TargetFramework >net8 .0</TargetFramework >
55 <Nullable >enable</Nullable >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <DockerDefaultTargetOS >Windows</DockerDefaultTargetOS >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net10 .0</TargetFramework >
4+ <TargetFramework >net8 .0</TargetFramework >
55 <Nullable >enable</Nullable >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <DockerDefaultTargetOS >Windows</DockerDefaultTargetOS >
1414 <PrivateAssets >all</PrivateAssets >
1515 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1616 </PackageReference >
17- <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 9 .0.3" />
17+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 8 .0.3" />
1818 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.13.0" />
1919 <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.21.2" />
2020 <PackageReference Include =" Reqnroll.NUnit" Version =" 2.4.0" />
2727 <ProjectReference Include =" ..\..\src\Captcha.Core\Captcha.Core.csproj" />
2828 <ProjectReference Include =" ..\..\src\Captcha.WebApi\CaptchaWebApi.csproj" />
2929 </ItemGroup >
30-
3130</Project >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net10 .0</TargetFramework >
4+ <TargetFramework >net8 .0</TargetFramework >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77 <IsPackable >false</IsPackable >
You can’t perform that action at this time.
0 commit comments