From 08687bae35d5d3f01e1233e83c9947f6910f5488 Mon Sep 17 00:00:00 2001 From: lyyyuna Date: Sat, 11 Jul 2020 08:43:27 +0800 Subject: [PATCH] add codecov.yaml --- .github/workflows/ut_check.yml | 2 +- codecov.yaml | 8 ++++++++ tests/run-ci-actions.sh | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 codecov.yaml diff --git a/.github/workflows/ut_check.yml b/.github/workflows/ut_check.yml index a22501be..86d76005 100644 --- a/.github/workflows/ut_check.yml +++ b/.github/workflows/ut_check.yml @@ -27,4 +27,4 @@ jobs: run: | export DEFAULT_EXCEPT_PKGS=e2e go test -p 1 -coverprofile=coverage.txt $(go list ./... | grep -v -E $DEFAULT_EXCEPT_PKGS) - bash <(curl -s https://codecov.io/bash) + bash <(curl -s https://codecov.io/bash) -F unittest diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 00000000..42f72f47 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,8 @@ +comment: + layout: "reach, diff, flags, files" + behavior: new + require_changes: false # if true: only post the comment if coverage changes + require_base: no # [yes :: must have a base report to post] + require_head: yes # [yes :: must have a head report to post] + branches: # branch names that can post comment + - "master" diff --git a/tests/run-ci-actions.sh b/tests/run-ci-actions.sh index 2a7b03ba..dee7924d 100755 --- a/tests/run-ci-actions.sh +++ b/tests/run-ci-actions.sh @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +set -ex + echo "test start" bats server.bats