From 453e7c5e6746ff7d2df793a997629133613c035e Mon Sep 17 00:00:00 2001 From: tolauwae Date: Sat, 7 Dec 2024 21:01:30 +0100 Subject: [PATCH] Report coverage in CI run --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 09c1edb..6ba920a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,6 +37,9 @@ jobs: run: | echo "LINE_COVERAGE=$(npm run coverage:test:ava | grep -E '^\s*Lines\s*:\s*[0-9]+(\.[0-9]+)?%' | awk '{print $3}' | tr -d '%')" >> $GITHUB_ENV + - name: Report coverage + run: npx c8 report + - name: Update coverage badge uses: schneegans/dynamic-badges-action@v1.7.0 with: