File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 1- name : Build
1+ name : SonarCloud
22on :
33 push :
44 branches :
77 types : [opened, synchronize, reopened]
88jobs :
99 build :
10- name : Build
10+ name : Build and analyze
1111 runs-on : windows-latest
1212 steps :
13- - name : Set up JDK 11
14- uses : actions/setup-java@v2.5.0
13+ - name : Set up JDK 17
14+ uses : actions/setup-java@v3
1515 with :
16- java-version : 1.11
17- - uses : actions/checkout@v2
16+ java-version : 17
17+ distribution : ' zulu' # Alternative distribution options are available.
18+ - uses : actions/checkout@v3
1819 with :
1920 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
2021 - name : Cache SonarCloud packages
21- uses : actions/cache@v2.1.7
22+ uses : actions/cache@v3
2223 with :
2324 path : ~\sonar\cache
2425 key : ${{ runner.os }}-sonar
2526 restore-keys : ${{ runner.os }}-sonar
2627 - name : Cache SonarCloud scanner
2728 id : cache-sonar-scanner
28- uses : actions/cache@v2.1.7
29+ uses : actions/cache@v3
2930 with :
3031 path : .\.sonar\scanner
3132 key : ${{ runner.os }}-sonar-scanner
4243 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
4344 shell : powershell
4445 run : |
45- .\.sonar\scanner\dotnet-sonarscanner begin /k:"deadmann_AdvancedRestHandler" /o:"deadmann" /d:sonar.login ="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
46- <insert_your_clean_build_command>
47- .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login ="${{ secrets.SONAR_TOKEN }}"
46+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"deadmann_AdvancedRestHandler" /o:"deadmann" /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 }}"
You can’t perform that action at this time.
0 commit comments