Skip to content

Commit bbfc282

Browse files
authored
Create coverage.yml
1 parent ac3e236 commit bbfc282

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Go Test and Coveralls
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.x # Replace with your desired Go version
20+
21+
- name: Install Coveralls
22+
run: go get github.com/mattn/goveralls
23+
24+
- name: Run Tests and Upload Coverage
25+
run: |
26+
go test -v ./cmd/... ./internal/... ./pkg/...
27+
$GOPATH/bin/goveralls -service=github
28+
env:
29+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

0 commit comments

Comments
 (0)