summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParamtamtam <[email protected]>2019-12-25 20:48:06 +0500
committerParamtamtam <[email protected]>2019-12-25 20:48:06 +0500
commit07ce4ac9cbca7d4e132023c33fd157853c48073c (patch)
treefc520c1f315437e0e131b2874a9934fba9fa8403
parentaa1b942fb5c57ad30d6641ec5850351c320be64a (diff)
Workflow updated
-rw-r--r--.github/workflows/ci-build.yml29
1 files changed, 15 insertions, 14 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 0c964501..dd5b5a0e 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -76,23 +76,24 @@ jobs:
go test ./service/health -race -v -coverprofile=health.txt -covermode=atomic
- name: Run code coverage
- if: secrets.CODECOV_TOKEN != ''
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
- curl https://codecov.io/bash -o codecov-bash
- chmod +x codecov-bash
- ./codecov-bash -f lib.txt
- ./codecov-bash -f util.txt
- ./codecov-bash -f service.txt
- ./codecov-bash -f env.txt
- ./codecov-bash -f rpc.txt
- ./codecov-bash -f http.txt
- ./codecov-bash -f static.txt
- ./codecov-bash -f limit.txt
- ./codecov-bash -f headers.txt
- ./codecov-bash -f metrics.txt
- ./codecov-bash -f health.txt
+ if [[ "$CODECOV_TOKEN" != "" ]]; then
+ curl https://codecov.io/bash -o codecov-bash
+ chmod +x codecov-bash
+ ./codecov-bash -f lib.txt
+ ./codecov-bash -f util.txt
+ ./codecov-bash -f service.txt
+ ./codecov-bash -f env.txt
+ ./codecov-bash -f rpc.txt
+ ./codecov-bash -f http.txt
+ ./codecov-bash -f static.txt
+ ./codecov-bash -f limit.txt
+ ./codecov-bash -f headers.txt
+ ./codecov-bash -f metrics.txt
+ ./codecov-bash -f health.txt
+ fi
image:
name: Build docker image