Skip to content

Commit cdbb862

Browse files
committed
Merge branch 'release/v1.6.2'
2 parents 8518a6c + effc8f9 commit cdbb862

2 files changed

Lines changed: 11 additions & 2 deletions

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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/wissance/stringFormatter?style=plastic)
44
![GitHub issues](https://img.shields.io/github/issues/wissance/stringFormatter?style=plastic)
55
![GitHub Release Date](https://img.shields.io/github/release-date/wissance/stringFormatter)
6-
[![Wissance.WebApiToolkit CI](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml)
6+
[![Wissance.StringFormatter CI](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Wissance/stringFormatter/actions/workflows/ci.yml)
7+
[![Go Report Card](https://goreportcard.com/badge/github.com/wissance/stringFormatter)](https://goreportcard.com/report/github.com/wissance/stringFormatter)
8+
![Coverage](https://coveralls.io/repos/github/wissance/stringFormatter/badge.svg?branch=master)
79

810
![String Formatter: a convenient string formatting tool](img/sf_logo_sm.png)
911

0 commit comments

Comments
 (0)