Skip to content

Commit

Permalink
Merge pull request #139 from coveooss/feature/bring-back-codecov
Browse files Browse the repository at this point in the history
Bring back Codecov
  • Loading branch information
dblanchette authored May 12, 2021
2 parents 9ff34b4 + 2815cbc commit f68d8e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
run: |
bash ./test.sh
- name: Upload to codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.txt
fail_ci_if_error: true

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
go test $d
go test -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out | grep -v "_mock.go" >> coverage.txt
rm profile.out
Expand Down

0 comments on commit f68d8e6

Please sign in to comment.