From f4a3728523c8e0568a6692e943cef003281097aa Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Fri, 26 Jul 2024 16:37:49 +0200 Subject: [PATCH] Use lcov coverage reporter --- .github/workflows/test-and-release.yml | 1 + vitest.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 90c2c36..fa85d3f 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -51,6 +51,7 @@ jobs: CI: true - name: ⬆️ Upload coverage report uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # pin@main + if: "contains(' refs/heads/main refs/heads/beta ', github.ref) && matrix.node-version == '22.x'" with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: 🚀 Release diff --git a/vitest.config.ts b/vitest.config.ts index 0a7031c..55009b4 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -5,7 +5,7 @@ export default defineConfig({ test: { root: "./src", coverage: { - reporter: ["json", "html"], + reporter: ["lcov", "html"], reportsDirectory: "../coverage", exclude: ["scripts/**", "tests/**"], },