From 82252b773ec2c10c3e19fc33ea9eb0a0181d47be Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Sat, 24 Sep 2022 19:56:32 +0800 Subject: [PATCH] update codecov --- .github/workflows/tests.yml | 6 ++++++ helper/test-cover.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7881953..2844935 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,3 +63,9 @@ jobs: - name: Run test cover run: sh helper/test-cover.sh + - name: Upload to codecov + uses: codecov/codecov-action@v3 + with: + files: ./coverage.txt # optional + fail_ci_if_error: true # optional (default = false) + verbose: true # optional (default = false) diff --git a/helper/test-cover.sh b/helper/test-cover.sh index 804eefc..5405697 100755 --- a/helper/test-cover.sh +++ b/helper/test-cover.sh @@ -10,4 +10,4 @@ done # go tool cover -html=coverage.txt -curl -s https://codecov.io/bash | bash +# curl -s https://codecov.io/bash | bash