From de5224689a7cac6e277eae61e81239b63851f144 Mon Sep 17 00:00:00 2001 From: John Guo Date: Thu, 12 May 2022 22:26:57 +0800 Subject: [PATCH] CI updates --- .github/workflows/gf.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/gf.yml b/.github/workflows/gf.yml index b6c468d1a..2423e9036 100644 --- a/.github/workflows/gf.yml +++ b/.github/workflows/gf.yml @@ -156,6 +156,16 @@ jobs: GOARCH=386 go test -v ./... || exit 1 GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1 + - name: Merge Coverage + run: | + for file in `find . -name coverage.txt`; do + # In case of recursively incremental selffile in root directory. + if [ "./coverage.txt" = $file ]; then + continue 1 + fi + cat $file | tail -n +2 >> coverage.txt + done + - name: Report Coverage uses: codecov/codecov-action@v2 with: