From 4fb04a0324e5ea1959946c5b7b30423014f49c2e Mon Sep 17 00:00:00 2001 From: Muhammad Surya Date: Sat, 3 Apr 2021 16:55:25 +0900 Subject: [PATCH 1/2] Test coverage --- .github/workflows/integration.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 6011e83..b760665 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -31,4 +31,7 @@ jobs: MSSQL_DATABASE: sqlserver://sa:REL2021-mssql@localhost:1433 run: | sleep 15 - go test -race ./... + go test -race -tags=all -coverprofile=coverage.txt -covermode=atomic ./... + - name: Codecov + uses: codecov/codecov-action@v1 + if: matrix.mssql == '2019' From 6c2b23c2e99bde39969cc5012e19920d0cf255f0 Mon Sep 17 00:00:00 2001 From: Muhammad Surya Date: Sat, 3 Apr 2021 16:58:13 +0900 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5ea49f0..f63c795 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![GoDoc](https://godoc.org/github.com/go-rel/mssql?status.svg)](https://pkg.go.dev/github.com/go-rel/mssql) [![Integration](https://github.com/go-rel/mssql/actions/workflows/integration.yml/badge.svg?branch=main)](https://github.com/go-rel/mssql/actions/workflows/integration.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/go-rel/mssql)](https://goreportcard.com/report/github.com/go-rel/mssql) +[![codecov](https://codecov.io/gh/go-rel/mssql/branch/main/graph/badge.svg?token=3VBLHCCG4N)](https://codecov.io/gh/go-rel/mssql) [![Gitter chat](https://badges.gitter.im/go-rel/rel.png)](https://gitter.im/go-rel/rel) Microsoft SQL Server adapter for REL.