From da6d4369c35906e0cdb5e103783e70861ea88eee Mon Sep 17 00:00:00 2001 From: Sotirios Mantziaris Date: Wed, 24 Feb 2021 20:54:16 +0200 Subject: [PATCH] Coveralls migration --- .github/workflows/go.yml | 13 +++++++++---- README.md | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 01134558..c71dc09f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,8 +20,13 @@ jobs: - name: Running CI run: make ci - - name: Upload code coverage - env: - CODECOV_TOKEN: ${{ secrets.CodeCovToken }} + - name: Convert coverage file to lcov run: | - bash <(curl -s https://codecov.io/bash) + GO111MODULE=off go get -u github.com/jandelgado/gcov2lcov + $(go env GOPATH)/bin/gcov2lcov -infile=coverage.txt -outfile=coverage.lcov + + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage.lcov diff --git a/README.md b/README.md index 7ddcf78a..ffe9c50b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Harvester ![Running CI](https://github.com/beatlabs/harvester/workflows/Running%20CI/badge.svg) [![codecov](https://codecov.io/gh/beatlabs/harvester/branch/master/graph/badge.svg)](https://codecov.io/gh/beatlabs/harvester) [![Go Report Card](https://goreportcard.com/badge/github.com/beatlabs/harvester)](https://goreportcard.com/report/github.com/beatlabs/harvester) [![GoDoc](https://godoc.org/github.com/beatlabs/harvester?status.svg)](https://godoc.org/github.com/beatlabs/harvester) ![GitHub release](https://img.shields.io/github/release/beatlabs/harvester.svg) +# Harvester ![Running CI](https://github.com/beatlabs/harvester/workflows/Running%20CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/beatlabs/harvester/badge.svg?branch=master)](https://coveralls.io/github/beatlabs/harvester?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/beatlabs/harvester)](https://goreportcard.com/report/github.com/beatlabs/harvester) [![GoDoc](https://godoc.org/github.com/beatlabs/harvester?status.svg)](https://godoc.org/github.com/beatlabs/harvester) ![GitHub release](https://img.shields.io/github/release/beatlabs/harvester.svg) `Harvester` is a configuration library which helps setting up and monitoring configuration values in order to dynamically reconfigure your application.