disable coverage on windows due to a crash
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 8 Mar 2024 08:43:12 +0000 (09:43 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 10 Apr 2024 15:05:56 +0000 (17:05 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
.github/workflows/windows-build-and-test.yml

index 7cc584f533e59ca60dcbf37700d073c6763c87e2..03b968849732017cf65d27e49543a0fa456783df 100644 (file)
@@ -75,24 +75,17 @@ jobs:
           
           craft --src-dir ${{ github.workspace }} nextcloud-client
           
-      - name: Run tests
+      - name: Run tests with coverage
         shell: pwsh
         run: |
-          function runTestsAndCreateCoverage() {
+          function runTests() {
               $buildFolder = "${{ github.workspace }}\${{ env.CRAFT_TARGET }}\build\nextcloud-client\work\build"
 
               cd $buildFolder
 
               $binFolder = "$buildFolder\bin"
 
-              & OpenCppCoverage.exe --optimized_build --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300
+              & ctest --output-on-failure --timeout 300
           }
           
-          runTestsAndCreateCoverage
-
-      - name: Upload coverage to Codecov
-        uses: codecov/codecov-action@v4
-        with:
-          token: ${{ secrets.CODECOV_TOKEN }}
-          directory: ${{ github.workspace }}\cobertura_coverage
-          fail_ci_if_error: true
+          runTests