From cabf0091c967b23ea9545e7ac40f4e452298cd00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=B7=B1=E6=B5=B7?= Date: Mon, 20 Sep 2021 20:38:07 +0800 Subject: [PATCH] Update coverage.yml --- .github/workflows/coverage.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b83e03e..04a9a1a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: Coverage on: push: @@ -29,9 +29,13 @@ jobs: - run: npm run beforetest - run: npm run cover - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1.0.2 - with: - token: ${{secrets.CODECOV_TOKEN}} - file: /home/runner/work/idraw/idraw/reports/clover.xml + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + files: ../../reports/clover.xml # optional + flags: unittests # optional + name: codecov-umbrella # optional + fail_ci_if_error: true # optional (default = false) + verbose: true # optional (default = false)