diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d00ff23..0cefcc80 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,10 +9,17 @@ jobs: <<: *defaults steps: - checkout - + - run: "! go fmt -l pkg cmd 2>&1 | read" - run: go vet ./... - - run: go test -v ./... + + # Run tests with overalls to generate also coverage report + - run: go get github.com/go-playground/overalls + - run: overalls -project=github.com/ernoaapa/eliot -covermode=atomic -- -race -v + # Send reports to codecov + - run: | + mv overalls.coverprofile coverage.txt + bash <(curl -s https://codecov.io/bash) build: <<: *defaults