From 3814a82669741b922a080f20f55d798ff2550438 Mon Sep 17 00:00:00 2001 From: seven Date: Mon, 23 Sep 2024 16:03:01 +0800 Subject: [PATCH] fix: report test coverage#5 Signed-off-by: seven --- .github/workflows/node.yml | 9 ++++++--- .github/workflows/release.yml | 8 +++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 8636512..d80a454 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -31,7 +31,10 @@ jobs: - run: npm audit --audit-level=critical - run: npm run test:ci - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + fail_ci_if_error: true + - run: npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d52e827..a3bb164 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,9 +34,11 @@ jobs: - run: npm audit --audit-level=critical - run: npm run test:ci - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + fail_ci_if_error: true - name: build 🔧 run: npm run build - name: Generate changelog