@@ -10,37 +10,39 @@ jobs:
1010 name : Build
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v5
13+ - uses : actions/checkout@v6.0.2
1414 with :
1515 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
1616
1717 - name : Set up JDK 17
18- uses : actions/setup-java@v5
18+ uses : actions/setup-java@v5.2.0
1919 with :
2020 distribution : ' temurin'
2121 java-version : ' 17'
2222 overwrite-settings : false
2323
2424 - name : Setup dotnet
25- uses : actions/setup-dotnet@v4
25+ uses : actions/setup-dotnet@v5.1.0
2626 with :
27- dotnet-version : ' 9 .0.x'
27+ dotnet-version : ' 10 .0.x'
2828
2929 - name : Restore dependencies
3030 run : dotnet restore EcoreNetto.sln
3131
3232 - name : Sonarqube Begin
3333 env :
3434 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
35+ SONAR_SCANNER_OPTS : " -Xmx4096m"
3536 run : |
3637 dotnet tool install --global dotnet-sonarscanner
37- dotnet sonarscanner begin /k:"STARIONGROUP_EcoreNetto" /o:"stariongroup" /d:sonar.token="$SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./CoverageResults/coverage.opencover.xml"
38+ dotnet tool install --global dotnet-coverage
39+ dotnet sonarscanner begin /k:"STARIONGROUP_EcoreNetto" /o:"stariongroup" /d:sonar.token="$SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
3840
3941 - name : Build
40- run : dotnet build --no-restore /p:ContinuousIntegrationBuild=true
42+ run : dotnet build --no-restore --no-incremental /p:ContinuousIntegrationBuild=true
4143
4244 - name : Test with the dotnet CLI
43- run : dotnet test EcoreNetto.sln --no-restore --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutput="../CoverageResults/" /p:MergeWith="../CoverageResults/ coverage.json" /p:CoverletOutputFormat=\"opencover,json\"
45+ run : dotnet-coverage collect "dotnet test EcoreNetto.sln --no-restore --no-build --verbosity normal" -f xml -o " coverage.xml"
4446
4547 - name : Sonarqube end
4648 env :
0 commit comments