Skip to content

Commit

Permalink
coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
celt237 committed Jun 30, 2024
1 parent 799dccd commit d5828ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@ jobs:
with:
go-version: 1.21

- name: Install dependencies
run: go mod download

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
- name: Run tests and generate coverage report
run: go test -v ./... -covermode=count -coverprofile=coverage.out

- name: Send coverage report to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.out # The relative path to the lcov coverage file.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Release](https://github.com/celt237/go-annotation/actions/workflows/release.yml/badge.svg)](https://github.com/celt237/go-annotation/actions/workflows/release.yml)
[![Coverage Status](https://coveralls.io/repos/github/celt237/go-annotation/badge.svg)](https://coveralls.io/github/celt237/go-annotation)


Expand Down

0 comments on commit d5828ab

Please sign in to comment.