Skip to content

Commit 5b4af86

Browse files
Add coverage (goveralls) github action (#2263)
- Removes outdated Travis CI configuration and associated scripts - Adds a new GitHub Actions workflow for coverage reporting - Simplifies coverage collection by using native Go tooling instead of custom bash scripts
1 parent ac55c2c commit 5b4af86

File tree

7 files changed

+31
-175
lines changed

7 files changed

+31
-175
lines changed

.github/workflows/cover.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
name: Coverage
7+
jobs:
8+
coverage:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v5
13+
with:
14+
go-version: '1.25.x'
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Clean environment
18+
run: |
19+
go clean -cache -testcache -modcache
20+
rm -f profile.cov
21+
- name: Test
22+
run: |
23+
go test -coverprofile=profile.cov ./...
24+
- name: Remove non-GO entries from coverage profile
25+
run: |
26+
grep -E 'mode|\.go' profile.cov > profile_go.cov
27+
- name: Send coverage
28+
uses: shogo82148/actions-goveralls@v1
29+
with:
30+
path-to-profile: profile_go.cov

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ![bleve](docs/bleve.png) bleve
22

33
[![Tests](https://github.com/blevesearch/bleve/actions/workflows/tests.yml/badge.svg?branch=master&event=push)](https://github.com/blevesearch/bleve/actions/workflows/tests.yml?query=event%3Apush+branch%3Amaster)
4-
[![Coverage Status](https://coveralls.io/repos/github/blevesearch/bleve/badge.svg?branch=master)](https://coveralls.io/github/blevesearch/bleve?branch=master)
4+
[![Coverage Status](https://coveralls.io/repos/github/blevesearch/bleve/badge.svg)](https://coveralls.io/github/blevesearch/bleve)
55
[![Go Reference](https://pkg.go.dev/badge/github.com/blevesearch/bleve/v2.svg)](https://pkg.go.dev/github.com/blevesearch/bleve/v2)
66
[![Join the chat](https://badges.gitter.im/join_chat.svg)](https://app.gitter.im/#/room/#blevesearch_bleve:gitter.im)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/blevesearch/bleve/v2)](https://goreportcard.com/report/github.com/blevesearch/bleve/v2)

scripts/build_children.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

scripts/merge-coverprofile.go

Lines changed: 0 additions & 62 deletions
This file was deleted.

scripts/old_build_script.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.

scripts/project-code-coverage.sh

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)