From d9d391a4fe4be3a60516fdc3e1592effa37c7a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Thu, 21 Mar 2024 14:34:26 -0500 Subject: [PATCH] ci: add coverage reporting --- .github/workflows/check.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 93722e0a..dc28e006 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -39,7 +39,14 @@ jobs: - name: coverage if: matrix.os == 'ubuntu-latest' - run: nix build -L --no-link --show-trace .#checks.x86_64-linux.coverage-report + run: nix build -L --out-link coverage-result --show-trace .#checks.x86_64-linux.coverage-report + + - name: report coverage + if: matrix.os == 'ubuntu-latest' + uses: 5monkeys/cobertura-action@v13 + with: + path: coverage-result/cobertura.xml + minimum_coverage: 50 - name: kairos x86_64-linux if: matrix.os == 'ubuntu-latest'