Skip to content

Commit

Permalink
Add coverage and badges (#2)
Browse files Browse the repository at this point in the history
* add badges

* add coverage
  • Loading branch information
jandelgado committed Oct 7, 2019
1 parent 07081a0 commit 4f26027
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on: [push, pull_request]
name: run tests
name: test and build
jobs:
lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -30,6 +30,16 @@ jobs:
uses: actions/checkout@v1
- name: Run tests
run: make test
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.0
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov

build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# gcov2lcov

[![Build Status](https://github.com/jandelgado/gcov2lcov/workflows/run%20tests/badge.svg)](https://github.com/jandelgado/gcov2lcov/actions?workflow=run%20tests)
[![Coverage Status](https://coveralls.io/repos/github/jandelgado/gcov2lcov/badge.svg?branch=master)](https://coveralls.io/github/jandelgado/gcov2lcov?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/jandelgado/gcov2lcov)](https://goreportcard.com/report/github.com/jandelgado/gcov2lcov)

Convert golang test coverage to lcov format (which can for example be uploaded
to coveralls).

Expand Down

0 comments on commit 4f26027

Please sign in to comment.