diff --git a/.gitea/workflows/ChaosCi.yaml b/.gitea/workflows/ChaosCi.yaml index 4d01363..cb6a581 100644 --- a/.gitea/workflows/ChaosCi.yaml +++ b/.gitea/workflows/ChaosCi.yaml @@ -15,7 +15,7 @@ jobs: - name: Install run: | sudo apt-get update - sudo apt-get install -y build-essential cmake valgrind + sudo apt-get install -y build-essential cmake valgrind lcov - name: Configure and build [Debug] run: | @@ -33,4 +33,15 @@ jobs: run: valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all ./build-debug/ChaosTests/ChaosTests - name: Run benchmarks - run: ./build-release/ChaosBenches/ChaosBenches \ No newline at end of file + run: ./build-release/ChaosBenches/ChaosBenches + + - name: Process coverage data + run: | + lcov --ignore-errors inconsistent -c -d build-debug/ -o lcovout + genhtml lcovout -o coverage-report + + - uses: actions/upload-artifact@v4 + with: + name: CoverageReport + path: coverage-report/ + if-no-files-found: error