Skip to content

Commit

Permalink
ci: add coverage (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Nov 7, 2020
1 parent 454e2fb commit 39fe439
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
{name: "Check out code into the Go module directory", uses: "actions/checkout@v1"},
{name: "Linter", run: "make lint"},
{name: "Test", run: "make test"},
{
"name": "Upload coverage",
"uses": "codecov/codecov-action@v1",
"with": {"token": ${{secrets.CODECOV_TOKEN}}, "file": ./coverage.txt, "fail_ci_if_error": false},
},
],
},
},
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GOPATH_DIR=`go env GOPATH`

test:
go test -count 3 -race -v ./analyzer/...
go test -count 3 -coverprofile=coverage.txt -covermode=atomic -race -v ./analyzer/...
go test -count 3 -race -v ./ruleguard/...
@echo "everything is OK"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# go-ruleguard

[![Build Status](https://travis-ci.com/quasilyte/go-ruleguard.svg?branch=master)](https://travis-ci.com/quasilyte/go-ruleguard)
[![GoDoc](https://godoc.org/github.com/quasilyte/go-ruleguard/dsl?status.svg)](https://godoc.org/github.com/quasilyte/go-ruleguard)
[![PkgGoDev](https://pkg.go.dev/badge/mod/github.com/quasilyte/go-ruleguard)](https://pkg.go.dev/mod/github.com/quasilyte/go-ruleguard)
[![Go Report Card](https://goreportcard.com/badge/github.com/quasilyte/go-ruleguard)](https://goreportcard.com/report/github.com/quasilyte/go-ruleguard)

![Logo](docs/logo2.png)
Expand Down

0 comments on commit 39fe439

Please sign in to comment.