Skip to content

Commit

Permalink
Call goveralls manually and change badges
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed May 21, 2020
1 parent 95b705e commit d562988
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 47 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
uses: actions/checkout@v2

- name: Get dependencies
run: go get -v -t -d ./...
run: |
go get -v -t -d ./...
go get -v -d github.com/mfridman/tparse
- name: Lint Go source code
run: |
Expand All @@ -42,8 +44,16 @@ jobs:
go install github.com/schrej/godacov
godacov -r coverage.out -t ${{ secrets.CODACY_TOKEN }} -c ${{ github.sha }}
# - name: Coveralls
# uses: shogo82148/[email protected]
# with:
# github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
# path-to-profile: coverage.out
# parallel: false

- name: Coveralls
uses: shogo82148/[email protected]
with:
path-to-profile: coverage.out
parallel: false
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
go install github.com/mattn/goveralls
goveralls -coverprofile coverage.out -reponame deanishe/awgo
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
AwGo — A Go library for Alfred workflows
========================================

[![Build Status][ghaction-status-icon]][ghaction-link]
[![Go Report Card][goreport-icon]][goreport-link]
[![Coverage Status][coveralls-icon]][coveralls-link]
[![GoDoc][godoc-icon]][godoc-link]
[![Build Status][ghaction-badge]][ghaction-link]
[![Go Report Card][goreport-badge]][goreport-link]
[![Coverage Status][coveralls-badge]][coveralls-link]
[![GoDoc][godoc-badge]][godoc-link]

<!--
[![Build Status][azure-status-icon]][azure-link]
[![Build Status][travis-icon]][travis-link]
[![Codacy Quality][codacy-quality-icon]][codacy-link]
[![Codacy coverage][coverage-icon]][codacy-link]
[![Coverage Status][coveralls-icon]][coveralls-link]
[![Build Status][azure-badge]][azure-link]
[![Build Status][travis-badge]][travis-link]
[![Codacy Quality][codacy-badge-quality]][codacy-link]
[![Codacy coverage][codacy-badge-coverage]][codacy-link]
[![Codecov coverage][codecov-badge]][codecov-link]
-->


Expand Down Expand Up @@ -173,24 +173,26 @@ The icon is based on the [Go Gopher][gopher] by [Renee French][renee].
[jetbrains]: https://www.jetbrains.com/?from=deanishe/awgo
[neovim]: https://neovim.io/

[godoc-icon]: https://godoc.org/github.com/deanishe/awgo?status.svg
[godoc-badge]: https://godoc.org/github.com/deanishe/awgo?status.svg
[godoc-link]: https://godoc.org/github.com/deanishe/awgo
[goreport-link]: https://goreportcard.com/report/github.com/deanishe/awgo
[goreport-icon]: https://goreportcard.com/badge/github.com/deanishe/awgo
[azure-status-icon]: https://img.shields.io/azure-devops/build/deanishe/6cd8e4fe-7366-4485-aea6-e9d75e7757b2/1
[goreport-badge]: https://goreportcard.com/badge/github.com/deanishe/awgo
[azure-badge]: https://img.shields.io/azure-devops/build/deanishe/6cd8e4fe-7366-4485-aea6-e9d75e7757b2/1
[azure-link]: https://dev.azure.com/deanishe/AwGo/_build
[ghaction-status-icon]: https://github.com/deanishe/awgo/workflows/Build/badge.svg
[ghaction-badge]: https://github.com/deanishe/awgo/workflows/Build/badge.svg
[ghaction-link]: https://github.com/deanishe/awgo/actions?query=workflow%3ABuild
[coveralls-icon]: https://img.shields.io/coveralls/github/deanishe/awgo/master
[coveralls-badge]: https://coveralls.io/repos/github/deanishe/awgo/badge.svg?branch=master&v3
[coveralls-link]: https://coveralls.io/github/deanishe/awgo?branch=master

<!--
[travis-status-icon]: https://img.shields.io/travis/deanishe/awgo
[travis-link]: https://travis-ci.org/deanishe/awgo
[codacy-quality-icon]: https://api.codacy.com/project/badge/Grade/e785f7b0e830468da6fa2856d62e59ab
[codacy-coverage-icon]: https://api.codacy.com/project/badge/Coverage/e785f7b0e830468da6fa2856d62e59ab
[coveralls-icon]: https://coveralls.io/repos/github/deanishe/awgo/badge.svg?branch=master&v3
[travis-icon]: https://travis-ci.org/deanishe/awgo.svg?branch=master
[coverage-badge]: https://img.shields.io/codacy/coverage/e785f7b0e830468da6fa2856d62e59ab?color=brightgreen
[codacy-link]: https://www.codacy.com/app/deanishe/awgo
[coverage-icon]: https://img.shields.io/codacy/coverage/e785f7b0e830468da6fa2856d62e59ab?color=brightgreen
[travis-badge]: https://img.shields.io/travis/deanishe/awgo
[travis-link]: https://travis-ci.org/deanishe/awgo
[codacy-badge-quality]: https://api.codacy.com/project/badge/Grade/e785f7b0e830468da6fa2856d62e59ab
[codacy-badge-coverage]: https://api.codacy.com/project/badge/Coverage/e785f7b0e830468da6fa2856d62e59ab
[travis-badge]: https://travis-ci.org/deanishe/awgo.svg?branch=master
[codecov-badge]: https://codecov.io/gh/deanishe/awgo/branch/master/graph/badge.svg
[codecov-link]: https://codecov.io/gh/deanishe/awgo
[coveralls-badge]: https://img.shields.io/coveralls/github/deanishe/awgo/master
-->
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require (
github.com/bmatcuk/doublestar v1.3.0
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/deanishe/go-env v0.4.0
github.com/mfridman/tparse v0.7.4 // indirect
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.5.1
golang.org/x/text v0.3.2
Expand Down
12 changes: 0 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y=
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mfridman/tparse v0.7.4 h1:/bwoDEkjDaftiSHBvhbs8EjNWIkCwPYNx/ocLl2rdT0=
github.com/mfridman/tparse v0.7.4/go.mod h1:OSpmW/J0XQa/+TeiFBmJARmJa68FCtq0jpsWKKJeU6Q=
github.com/olekukonko/tablewriter v0.0.1 h1:b3iUnf1v+ppJiOfNX4yxxqfWKMQPZR5yoh8urCTFX88=
github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand All @@ -33,7 +22,6 @@ github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJy
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
golang.org/x/sys v0.0.0-20181128092732-4ed8d59d0b35/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
Expand Down
8 changes: 0 additions & 8 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ export alfred_workflow_cache="${testdir}/cache"

st=0
$runtests && {
# go test $gopts $pkgs
go test -cover -json $gopts $pkgs | go run github.com/mfridman/tparse
# gotestsum -- $gopts $pkgs
st=$?
Expand Down Expand Up @@ -183,13 +182,6 @@ $opencover && {
}
}

# $cover && installed gocov && {
# gocov convert "$covfile" > "$covjson"
# installed gocov-html && {
# gocov-html > "$covhtml" < "$covjson"
# }
# }

exit 0

# vim: set ft=zsh ts=2 sw=2 tw=100 et :

0 comments on commit d562988

Please sign in to comment.