From e57265e8017536dd27ff6cbbee1750520472c413 Mon Sep 17 00:00:00 2001 From: Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com> Date: Tue, 15 Feb 2022 00:08:20 -0500 Subject: [PATCH] test(test-utils): add codecov coverage (#6051) --- .github/workflows/unit-test.yml | 6 +++++- codecov.yml | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 5fc3a02e85..7823d80753 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -32,4 +32,8 @@ jobs: - name: Lint run: pnpm lint - name: Test - run: pnpm test + run: pnpm test -- --coverage + - name: Upload to codecov.io + uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: true diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..5db30169fc --- /dev/null +++ b/codecov.yml @@ -0,0 +1,9 @@ +coverage: + status: + project: + default: + target: auto + threshold: 10% +comment: + layout: 'reach, diff, flags, files' + require_changes: true