From 78083752fd6a5ec167e3f5f67d79113c6876dd54 Mon Sep 17 00:00:00 2001 From: franneck94 Date: Sun, 10 Mar 2024 08:54:50 +0100 Subject: [PATCH] another one --- .github/workflows/macos.yml | 4 +++- .github/workflows/ubuntu.yml | 31 ++++++++++++++++--------------- .github/workflows/windows.yml | 4 +++- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 97db5f9..232ed08 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -19,4 +19,6 @@ jobs: cmake -H. -Bbuild -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Debug" - name: building and testing run: | - ctest --build-and-test + cmake --build build --config Debug + cd build + ctest . diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 32c917d..a5e2dee 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -27,20 +27,21 @@ jobs: run: | cd build ctest . - - - name: Setup .NET Core - uses: actions/setup-dotnet@v3 + - name: Code Coverage Report + uses: irongut/CodeCoverageSummary@v1.3.0 with: - dotnet-version: 8.x - dotnet-quality: 'ga' - - - name: Test - run: | - ls -la build/ - - - name: ReportGenerator - uses: danielpalme/ReportGenerator-GitHub-Action@5.2.2 + filename: build/coverage/summary_cobertura.xml + badge: true + fail_below_min: true + format: markdown + hide_branch_rate: false + hide_complexity: true + indicators: true + output: both + thresholds: '60 80' + - name: Add Coverage PR Comment + uses: marocchino/sticky-pull-request-comment@v2 + if: github.event_name == 'pull_request' with: - reports: build/coverage/coverage.cobertura.xml - targetdir: coverage - reporttypes: Html;Badges + recreate: true + path: code-coverage-results.md diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0726e03..5cce786 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -19,4 +19,6 @@ jobs: cmake -H"." -Bbuild -T host=x86 -A x64 -DCMAKE_BUILD_TYPE="Debug" - name: building and testing run: | - ctest --build-and-test + cmake --build build --config Debug + cd build + ctest .