Browse Source

update codecov

pull/358/head
yedf2 4 years ago
parent
commit
82252b773e
  1. 6
      .github/workflows/tests.yml
  2. 2
      helper/test-cover.sh

6
.github/workflows/tests.yml

@ -63,3 +63,9 @@ jobs:
- name: Run test cover - name: Run test cover
run: sh helper/test-cover.sh run: sh helper/test-cover.sh
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.txt # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

2
helper/test-cover.sh

@ -10,4 +10,4 @@ done
# go tool cover -html=coverage.txt # go tool cover -html=coverage.txt
curl -s https://codecov.io/bash | bash # curl -s https://codecov.io/bash | bash

Loading…
Cancel
Save