Skip to content

Commit

Permalink
Merge pull request #250 from goccy/feature/add-workflow
Browse files Browse the repository at this point in the history
Add workflow for ycat
  • Loading branch information
goccy committed Sep 2, 2021
2 parents 36fc03e + 061f8bf commit ae5437d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ jobs:
- name: test
run: |
make test
ycat:
name: ycat
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: checkout
uses: actions/checkout@v2
- name: build
run: |
make ycat/build
- name: run
run: |
./ycat .github/workflows/go.yml
coverage:
name: Coverage
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ cover:
.PHONY: cover-html
cover-html: cover
go tool cover -html=cover.out

.PHONY: ycat/build
ycat/build:
go build -o ycat ./cmd/ycat
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ output result is the following:

# Tools

## ycat
## ycat

print yaml file with color

Expand All @@ -358,9 +358,13 @@ print yaml file with color
### Installation

```sh
go get -u github.com/goccy/go-yaml/cmd/ycat
go install github.com/goccy/go-yaml/cmd/ycat@latest
```

# Looking for Sponsors

I'm looking for sponsors this library. This library is being developed as a personal project in my spare time. If you want a quick response or problem resolution when using this library in your project, please register as a [sponsor](https://github.com/sponsors/goccy). I will cooperate as much as possible. Of course, this library is developed as an MIT license, so you can use it freely for free.

# License

MIT

0 comments on commit ae5437d

Please sign in to comment.