From 5c0191f24cb8ae66697d048c529b075a9bd8371a Mon Sep 17 00:00:00 2001 From: git-hulk Date: Fri, 22 Sep 2023 18:12:07 +0800 Subject: [PATCH] Add codeverall to CI --- .github/workflows/ci.yaml | 8 ++++++++ README.md | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 23e805e..b11ad71 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -46,3 +46,11 @@ jobs: - name: Test run: make test + + - name: Install goveralls + run: go install github.com/mattn/goveralls@latest + + - name: Send coverage + env: + COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: goveralls -coverprofile=coverage.out -service=github \ No newline at end of file diff --git a/README.md b/README.md index 5285638..cb3448e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # ClickHouse SQL Parser -[![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) +[![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) The goal of this project is to build a ClickHouse SQL parser in Go with the following key features: @@ -23,7 +23,7 @@ import ( query := "SELECT * FROM clickhouse" parser := clickhouse.NewParser(query) // Parse query into AST -statements, err := newParser.ParseStatements() +statements, err := parser.ParseStatements() if err != nil { return nil, err }