Update coverage.yml

This commit is contained in:
Jérôme Leclercq 2022-04-29 13:30:53 +02:00 committed by GitHub
parent 922b07c306
commit 1c2b921b05
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ jobs:
matrix: matrix:
config: config:
- { name: "Windows x64", os: windows-latest, arch: x64 } - { name: "Windows x64", os: windows-latest, arch: x64 }
- { name: "Ubuntu 20.04 x86_64", os: ubuntu-latest, arch: x86_64 } - { name: "Ubuntu x86_64", os: ubuntu-latest, arch: x86_64 }
name: ${{ matrix.config.name }} name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }} runs-on: ${{ matrix.config.os }}
@ -87,7 +87,7 @@ jobs:
- name: Run unit tests and generate coverage output - name: Run unit tests and generate coverage output
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: |
OpenCppCoverage --export_type cobertura:coverage.out --sources "include/Nazara" --sources "src/Nazara" -- xmake run NazaraUnitTests OpenCppCoverage.exe --export_type cobertura:coverage.out --sources "include/Nazara" --sources "src/Nazara" -- xmake run NazaraUnitTests
gcovr -x coverage.out -s -f 'include/Nazara/.*' -f 'src/Nazara/.*' build/.objs/ gcovr -x coverage.out -s -f 'include/Nazara/.*' -f 'src/Nazara/.*' build/.objs/
- name: Upload Coverage Report to Codecov - name: Upload Coverage Report to Codecov