From 340166e0a25152dcda948071342b4b0ec5b6c24f Mon Sep 17 00:00:00 2001 From: Shupilkin Stanislav Yurevich Date: Wed, 23 Oct 2019 22:03:32 +0300 Subject: Add step for running code coverage --- .github/workflows/blank.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 909896e8..acbc672e 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -37,6 +37,7 @@ jobs: export GO111MODULE=on php -v composer -V + go version go mod download composer install --no-interaction --prefer-source find src/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l @@ -51,6 +52,19 @@ jobs: go test ./service/http -race -v -coverprofile=http.txt -covermode=atomic go test ./service/static -race -v -coverprofile=static.txt -covermode=atomic go test ./service/limit -race -v -coverprofile=limit.txt -covermode=atomic - go test ./service/headers -race -v -coverprofile=headers.txt -covermode=atomic + go test ./service/headers -race -v -coverprofilevers=headers.txt -covermode=atomic go test ./service/metrics -race -v -coverprofile=metrics.txt -covermode=atomic go test ./service/health -race -v -coverprofile=health.txt -covermode=atomic + - name: Run code coverage + run: | + bash <(curl -s https://codecov.io/bash) -f lib.txt + bash <(curl -s https://codecov.io/bash) -f util.txt + bash <(curl -s https://codecov.io/bash) -f service.txt + bash <(curl -s https://codecov.io/bash) -f env.txt + bash <(curl -s https://codecov.io/bash) -f rpc.txt + bash <(curl -s https://codecov.io/bash) -f http.txt + bash <(curl -s https://codecov.io/bash) -f static.txt + bash <(curl -s https://codecov.io/bash) -f limit.txt + bash <(curl -s https://codecov.io/bash) -f headers.txt + bash <(curl -s https://codecov.io/bash) -f metrics.txt + bash <(curl -s https://codecov.io/bash) -f health.txt -- cgit v1.2.3