From b608beb39b4cb67c25a2a887a158df41d1f2cbf7 Mon Sep 17 00:00:00 2001 From: Aaron Klinker Date: Wed, 27 Sep 2023 11:59:52 -0500 Subject: [PATCH 1/2] chore: Exclude e2e files from coverage reports --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 72a6b2296..703ee71c0 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "format:check": "prettier --write .", "compile": "tsc --noEmit", "test": "vitest", - "test:coverage": "vitest run --coverage", + "test:coverage": "vitest run --coverage.enabled --coverage.exclude=e2e", "prepare": "simple-git-hooks", "prepublish": "pnpm -s build", "docs:dev": "vitepress dev docs", From 6fee55c62a4dae337ff3bdd7e8f2ea8c1f7d6bf8 Mon Sep 17 00:00:00 2001 From: Aaron Klinker Date: Wed, 27 Sep 2023 12:15:47 -0500 Subject: [PATCH 2/2] Add codecov to github actions --- .github/workflows/validate.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a0cc15a1f..9a82a2b8f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -51,6 +51,11 @@ jobs: - name: Tests run: pnpm test:coverage --reporter=default --reporter=hanging-process + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + project-templates: name: Project Templates runs-on: ubuntu-22.04