From 5681f29049e7fb290ba0ed8573f39ccaa6b0b4e3 Mon Sep 17 00:00:00 2001 From: npmstudy Date: Wed, 13 Dec 2023 19:18:35 +0800 Subject: [PATCH] chore: refact --- .github/workflows/ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f7d187..8ef37e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,9 +29,27 @@ jobs: - name: Build run: npm run build - - name: Upload coverage reports to Codecov + + - name: Upload @tomrpc/core coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + file: ./packages/core/coverage/coverage-final.json + flags: tomrpc/core + + - name: Upload @tomrpc/client coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + file: ./packages/client/coverage/coverage-final.json + flags: tomrpc/client + + - name: Upload @tomrpc/app coverage reports to Codecov uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - file: ./coverage/lcov.info + file: ./packages/app/coverage/coverage-final.json + flags: tomrpc/app