Skip to content

Commit

Permalink
update readme. add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jul 21, 2020
1 parent d7f9bef commit 8993559
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Unit-Tests
on: [push]
jobs:

test:
name: Test on go ${{ matrix.go_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: [1.11, 1.12, 1.13, 1.14]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Check out code
uses: actions/checkout@v2
# https://github.com/actions/setup-go
- name: Use Go ${{ matrix.go_version }}
timeout-minutes: 3
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go_version }}

- name: Get dependencies
run: |
go get -v -t -d ./...
go get github.com/mattn/goveralls
go get golang.org/x/tools/cmd/cover
- name: Run unit tests
run: go test -v -cover ./...
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ If you want more support for file content formats, recommended use `gookit/confi
- [doc on gowalker](https://gowalker.org/github.com/gookit/ini)
- [godoc for github](https://godoc.org/github.com/gookit/ini)

## Install

```bash
go get github.com/gookit/ini/v2
```

## Usage

- example data(`testdata/test.ini`):
Expand Down
6 changes: 6 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
- [doc on gowalker](https://gowalker.org/github.com/gookit/ini)
- [godoc for github](https://godoc.org/github.com/gookit/ini)

## 安装

```bash
go get github.com/gookit/ini/v2
```

## 快速使用

- 示例数据(`testdata/test.ini`):
Expand Down

0 comments on commit 8993559

Please sign in to comment.