Skip to content

Commit

Permalink
Merge 8b42d37 into 21feffd
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Aug 29, 2020
2 parents 21feffd + 8b42d37 commit 73b5c8d
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,20 @@ jobs:
go mod download
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=profile.cov ./...
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Install goveralls
env:
GO111MODULE: off
run: go get github.com/mattn/goveralls
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
run: goveralls -coverprofile=covprofile -service=github
# or use shogo82148/actions-goveralls
# - name: Send coverage
# uses: shogo82148/actions-goveralls@v1
# with:
# path-to-profile: profile.cov
# path-to-profile: covprofile
```

### Test with Legacy GOPATH mode
Expand Down Expand Up @@ -108,14 +110,16 @@ jobs:
path: src/example.com/owner/repo # add this
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=profile.cov ./...
go test -race -covermode atomic -coverprofile=covprofile ./...
working-directory: src/example.com/owner/repo # add this
- name: Install goveralls
env:
GO111MODULE: off
run: go get github.com/mattn/goveralls
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
run: goveralls -coverprofile=covprofile -service=github
working-directory: src/example.com/owner/repo # add this
```

Expand Down

0 comments on commit 73b5c8d

Please sign in to comment.