Skip to content

Commit 2d5d5a4

Browse files
authored
Add the test cover report to CI (AfterShip#2)
1 parent 713af4b commit 2d5d5a4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,11 @@ jobs:
4646
4747
- name: Test
4848
run: make test
49+
50+
- name: Install goveralls
51+
run: go install github.com/mattn/goveralls@latest
52+
53+
- name: Send coverage
54+
env:
55+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: goveralls -coverprofile=coverage.out -service=github

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ClickHouse SQL Parser
2-
[![Go Report Card](https://goreportcard.com/badge/github.com/AfterShip/clickhouse-sql-parser)](https://goreportcard.com/report/github.com/AfterShip/clickhouse-sql-parser) [![LICENSE](https://img.shields.io/github/license/AfterShip/clickhouse-sql-parser.svg)](https://github.com/AfterShip/clickhouse-sql-parser/blob/master/LICENSE)[![GoDoc](https://img.shields.io/badge/Godoc-reference-blue.svg)](https://godoc.org/github.com/AfterShip/clickhouse-sql-parser)
2+
[![Go Report Card](https://goreportcard.com/badge/github.com/AfterShip/clickhouse-sql-parser)](https://goreportcard.com/report/github.com/AfterShip/clickhouse-sql-parser) [![LICENSE](https://img.shields.io/github/license/AfterShip/clickhouse-sql-parser.svg)](https://github.com/AfterShip/clickhouse-sql-parser/blob/master/LICENSE) [![GoDoc](https://img.shields.io/badge/Godoc-reference-blue.svg)](https://godoc.org/github.com/AfterShip/clickhouse-sql-parser)
33

44
The goal of this project is to build a ClickHouse SQL parser in Go with the following key features:
55

@@ -23,7 +23,7 @@ import (
2323
query := "SELECT * FROM clickhouse"
2424
parser := clickhouse.NewParser(query)
2525
// Parse query into AST
26-
statements, err := newParser.ParseStatements()
26+
statements, err := parser.ParseStatements()
2727
if err != nil {
2828
return nil, err
2929
}

0 commit comments

Comments
 (0)