Skip to content

Commit d4c34b3

Browse files
committed
add coverage && integrations
1 parent 19fa1dc commit d4c34b3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ jobs:
4141
with:
4242
go-version: '1.21'
4343
- name: Test all
44-
run: go version && go mod tidy && go test -v ./...
44+
run: go version && go mod tidy && go test -v -covermode=count -coverprofile=coverage.out ./...
45+
- name: Upload coverage to Coveralls
46+
uses: coverallsapp/github-action@v2
47+
with:
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
# If your repo is private, uncomment the next line and set the secret
50+
# coveralls-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
51+
path-to-lcov: coverage.out
4552

4653
#all-tests-windows:
4754
# name: Run all tests on windows

0 commit comments

Comments
 (0)