diff options
Diffstat (limited to '.github/workflows/ci-build.yml')
-rw-r--r-- | .github/workflows/ci-build.yml | 29 |
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 |