From 9023c5cca227597bcb719f29ee68a01230b66dbf Mon Sep 17 00:00:00 2001 From: Roshan Ranabhat Date: Wed, 10 Aug 2022 08:52:49 +0545 Subject: [PATCH 1/2] feat: add github workflow --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d8ced3d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: Stringy + +on: push + +jobs: + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Test + run: go test -v ./... From 387acdc5eaa8903359ef93a14e042d7e690d1d67 Mon Sep 17 00:00:00 2001 From: Roshan Ranabhat Date: Wed, 10 Aug 2022 08:53:40 +0545 Subject: [PATCH 2/2] chore: update workflow badge in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a9129a..9c3ae80 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Golang String manipulation helper package -[![Build][Build-Status-Image]][Build-Status-Url] [![Go Report Card](https://goreportcard.com/badge/github.com/gobeam/stringy?branch=master&kill_cache=1)](https://goreportcard.com/report/github.com/gobeam/Stringy) [![GoDoc][godoc-image]][godoc-url] +![Workflow](https://github.com/gobeam/stringy/actions/workflows/ci.yml/badge.svg) [![Build][Build-Status-Image]][Build-Status-Url] [![Go Report Card](https://goreportcard.com/badge/github.com/gobeam/stringy?branch=master&kill_cache=1)](https://goreportcard.com/report/github.com/gobeam/Stringy) [![GoDoc][godoc-image]][godoc-url] [![Coverage Status](https://coveralls.io/repos/github/gobeam/stringy/badge.svg)](https://coveralls.io/github/gobeam/stringy) Convert string to camel case, snake case, kebab case / slugify, custom delimiter, pad string, tease string and many other functionality with help of by Stringy package. You can convert camelcase to snakecase or kebabcase, or snakecase to camelcase and kebabcase and vice versa. This package was inspired from PHP [danielstjules/Stringy](https://github.com/danielstjules/Stringy).