Skip to content

Commit

Permalink
github workflows: add coveralls for test coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
sloorush committed Sep 16, 2021
1 parent 04aac05 commit 169cd04
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 10
steps:

- name: setup directory
Expand Down Expand Up @@ -53,7 +53,13 @@ jobs:
shell: bash
run: |
cd $GOPATH/src/github.com/${{ github.repository }}
go test -v ./accumulator
go test -v ./accumulator -race -covermode atomic -coverprofile=covprofile
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: "covprofile"
working-directory: "${{ github.workspace }}/go/src/github.com/${{ github.repository }}"

- name: Run integration tests
shell: bash
Expand All @@ -74,6 +80,7 @@ jobs:
needs: Build
timeout-minutes: 5
steps:

# set GOPATH
- name: setup env
shell: bash
Expand Down

0 comments on commit 169cd04

Please sign in to comment.