Skip to content

Commit c527887

Browse files
committed
updated files for sonarcloud CI
1 parent 4a23e8e commit c527887

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,22 @@ jobs:
1111
runs-on: windows-latest
1212
steps:
1313
- name: Set up JDK 17
14-
uses: actions/setup-java@v3
14+
uses: actions/setup-java@v4
1515
with:
1616
java-version: 17
1717
distribution: 'zulu' # Alternative distribution options are available.
18-
- name: Setup .NET
19-
uses: actions/setup-dotnet@v2
20-
with:
21-
dotnet-version: 6.0.301
22-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
2319
with:
2420
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
2521
- name: Cache SonarCloud packages
26-
uses: actions/cache@v3
22+
uses: actions/cache@v4
2723
with:
2824
path: ~\sonar\cache
2925
key: ${{ runner.os }}-sonar
3026
restore-keys: ${{ runner.os }}-sonar
3127
- name: Cache SonarCloud scanner
3228
id: cache-sonar-scanner
33-
uses: actions/cache@v3
29+
uses: actions/cache@v4
3430
with:
3531
path: .\.sonar\scanner
3632
key: ${{ runner.os }}-sonar-scanner
@@ -47,8 +43,6 @@ jobs:
4743
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4844
shell: powershell
4945
run: |
50-
dotnet tool install --global dotnet-coverage
5146
.\.sonar\scanner\dotnet-sonarscanner begin /k:"chrdek_linqpath_prerel" /o:"chrdek" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
52-
dotnet restore ./linqpath_prerel\ExporterUtility.sln
53-
dotnet build .\LinqPath\LinqPath.csproj /t:Rebuild /p:Configuration=Debug
47+
dotnet build
5448
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)