diff options
author | Shupilkin Stanislav Yurevich <[email protected]> | 2019-10-23 22:03:32 +0300 |
---|---|---|
committer | Shupilkin Stanislav Yurevich <[email protected]> | 2019-10-23 22:03:32 +0300 |
commit | 340166e0a25152dcda948071342b4b0ec5b6c24f (patch) | |
tree | c6b92b9af8c89b147be191796ef56d9e1992402b /.github | |
parent | 14dac9be74e95185a3bf6c724559de5349a1a6e0 (diff) |
Add step for running code coverage
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/blank.yml | 16 |
1 files changed, 15 insertions, 1 deletions
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 |