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