style: fix typo and update readme

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-07-10 11:29:03 +08:00
parent e2b277f0ab
commit 0a4dfb2cbb
4 changed files with 19 additions and 23 deletions
+33
View File
@@ -0,0 +1,33 @@
name: CI
on: [push]
jobs:
build:
name: Build
runs-on: macos-latest
strategy:
matrix:
goVer: [1.11, 1.12, 1.13, 1.14]
steps:
- name: Set up Go ${{ matrix.goVer }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.goVer }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
go get gopkg.in/check.v1
- name: Build
run: go build -v .
- name: Format
run: diff -u <(echo -n) <(gofmt -d .)
- name: Test
run: go test -v ./...