diff --git a/.github/workflows/main.yml b/.github/workflows/ci.yml similarity index 72% rename from .github/workflows/main.yml rename to .github/workflows/ci.yml index 6eebffe..72f5ca6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/ci.yml @@ -20,5 +20,11 @@ jobs: - name: Run golint run: go get golang.org/x/lint/golint && bash -c "$(go env GOPATH)/bin/golint -set_exit_status -min_confidence 0.9 ./..." - name: Run Tests - run: go test ./... + run: go test -coverprofile=coverage.txt -covermode=atomic ./... + - name: Run Coverage + run: bash <(curl -s https://codecov.io/bash) + env: + CODECOV_TOKEN: 36be8ba6-7ef1-4ec2-b607-67c1055a62ad + + diff --git a/README.md b/README.md index f96cceb..a96f0f0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ +[![codecov](https://codecov.io/gh/VinGarcia/ksql/branch/master/graph/badge.svg?token=5CNJ867C66)](https://codecov.io/gh/VinGarcia/ksql) [![CI](https://github.com/VinGarcia/ksql/actions/workflows/main.yml/badge.svg)](https://github.com/VinGarcia/ksql/actions/workflows/main.yml) # KissSQL