Merge pull request #13 from VinGarcia/update-ci

Add code coverage to CI
pull/16/head
Vinícius Garcia 2021-12-28 20:26:05 -03:00 committed by GitHub
commit 5c385bd974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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