From f28f28dc1b563e6f8b21069e0aecb90e3669c35e Mon Sep 17 00:00:00 2001 From: Barrior Date: Sun, 21 Jan 2024 14:25:31 +0800 Subject: [PATCH] chore: report coverage to codecov --- .github/workflows/testing.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 7be3b0c..28dda2e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -35,5 +35,10 @@ jobs: - name: Run lint run: yarn lint - - name: Run testing - run: yarn test:unit + - name: Run testing with coverage + run: yarn coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}