From 7f2ef962ecc4444cc9c17053b3768ffeb9499d78 Mon Sep 17 00:00:00 2001 From: ckohen Date: Sun, 19 Feb 2023 10:59:35 -0800 Subject: [PATCH] test: fix coverage reporting (#9148) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .github/workflows/tests.yml | 3 ++- codecov.yml | 1 + vitest.config.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c7172ce21..490a318c8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,8 @@ on: push: pull_request: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + # Group based on workflow name and PR if it exists, if no PR, let it run so carryforward flags work + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: tests: diff --git a/codecov.yml b/codecov.yml index 8b363613c..9c76afdf6 100644 --- a/codecov.yml +++ b/codecov.yml @@ -15,6 +15,7 @@ coverage: flag_management: default_rules: + carryforward: true statuses: - type: project target: auto diff --git a/vitest.config.ts b/vitest.config.ts index 29ea679f9..81e9cde90 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -15,6 +15,8 @@ export default defineConfig({ '**/*.{interface,type,d}.ts', // All index files that *should* only contain exports from other files '**/index.{js,ts}', + // All exports files that make subpackages available as submodules + '**/exports/*.{js,ts}', ], }, },