Skip to content

Commit 4b67dde

Browse files
author
Ryan Svihla
committed
trying goveralls
1 parent 4aabc64 commit 4b67dde

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/go.yaml

+13-9
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ jobs:
2828
go-version: '1.16'
2929
- name: Checkout code
3030
uses: actions/checkout@v2
31-
- name: Calc coverage
31+
- name: Install dependencies
3232
run: |
33-
go test -v -covermode=count -coverprofile=coverage.out ./...
34-
- name: Convert coverage.out to coverage.lcov
35-
uses: jandelgado/[email protected]
36-
- name: Coveralls
37-
uses: coverallsapp/[email protected]
38-
with:
39-
github-token: ${{ secrets.GITHUB_TOKEN }}
40-
path-to-lcov: coverage.lcov
33+
go mod download
34+
- name: Run Unit tests
35+
run: |
36+
go test -race -covermode atomic -coverprofile=covprofile ./...
37+
- name: Install goveralls
38+
env:
39+
GO111MODULE: off
40+
run: go get github.com/mattn/goveralls
41+
- name: Send coverage
42+
env:
43+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
run: goveralls -coverprofile=covprofile -service=github

0 commit comments

Comments
 (0)