From 1496f32158ae3eb7c4aa2b5e5c68c98b6f20b56d Mon Sep 17 00:00:00 2001 From: Barrior Date: Wed, 10 Jan 2024 11:20:24 +0800 Subject: [PATCH] chore(ci): setup coverage reports to codecov --- .github/workflows/testing.yml | 9 +++++++-- .vscode/settings.json | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index cac140e..9e824b9 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -40,5 +40,10 @@ jobs: - name: Run lint run: pnpm lint - - name: Run testing - run: pnpm test + - name: Run testing with coverage + run: pnpm cov + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.vscode/settings.json b/.vscode/settings.json index dafdbf2..2d90b8d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,7 @@ { "cSpell.words": [ "antd", + "Codecov", "commitlint", "cssinjs", "dumi",