1818 - name : 📥 Checkout Code
1919 uses : actions/checkout@v4
2020 with :
21- fetch-depth : 0 # Fetch all history for proper SonarQube analysis
21+ fetch-depth : 0 # Fetch all history for proper analysis
2222
2323 - name : 🔧 Setup .NET
2424 uses : actions/setup-dotnet@v4
@@ -32,17 +32,17 @@ jobs:
3232 key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
3333 restore-keys : ${{ runner.os }}-nuget-
3434
35- - name : ☕ Setup Java for SonarScanner
36- uses : actions/setup-java@v4
37- with :
38- distribution : ' temurin'
39- java-version : ' 21'
35+ # - name: ☕ Setup Java for SonarScanner
36+ # uses: actions/setup-java@v4
37+ # with:
38+ # distribution: 'temurin'
39+ # java-version: '21'
4040
4141 - name : 📈 Install dotnet-coverage
4242 run : dotnet tool install -g dotnet-coverage
4343
44- - name : 🧭 Install SonarScanner
45- run : dotnet tool install -g dotnet-sonarscanner
44+ # - name: 🧭 Install SonarScanner
45+ # run: dotnet tool install -g dotnet-sonarscanner
4646
4747 # - name: 📊 Begin SonarQube scan
4848 # run: dotnet sonarscanner begin /k:"Z80Emu" /d:sonar.token="${{ secrets.SONARQUBE_TOKEN }}" /d:sonar.host.url="https://sonarqube.prouse.org/" /d:sonar.cs.opencover.reportsPaths="**/coverage.cobertura.xml" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
5353 - name : 🛠️ Build
5454 run : dotnet build -c Release --no-restore
5555
56- - name : ✅ Run test and collect coverage
57- run : dotnet-coverage collect "dotnet test -c Release --no-build --verbosity normal ./Z80Emu.sln" -f xml -o coverage.xml
58-
59- - name : 📊 Generate Cobertura coverage report
60- run : dotnet-coverage convert coverage.xml -f cobertura -o coverage.cobertura.xml
56+ - name : ✅ Run tests and collect coverage
57+ run : dotnet-coverage collect "dotnet test -c Release --no-build --verbosity normal ./Z80Emu.sln" -f cobertura -o coverage.cobertura.xml
6158
6259 - name : 📈 Upload coverage to codecov
6360 uses : codecov/codecov-action@v3
0 commit comments