From: Matthieu Gallien Date: Fri, 8 Mar 2024 08:43:12 +0000 (+0100) Subject: disable coverage on windows due to a crash X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~48^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cf97b439d052a65d384217680a6e43e3da9c4893;p=nextcloud-desktop.git disable coverage on windows due to a crash Signed-off-by: Matthieu Gallien --- diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 7cc584f53..03b968849 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -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