disable coverage on windows due to a crash

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2024-03-08 09:43:12 +01:00 committed by Matthieu Gallien
parent ee28ef818f
commit cf97b439d0
1 changed files with 4 additions and 11 deletions

View 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