update README #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| lint: | |
| name: Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Run golangci-lint | |
| uses: golangci/[email protected] | |
| with: | |
| version: v1.39 | |
| test: | |
| name: Testing | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: ^1.16 | |
| - name: Download gocov | |
| run: go get github.com/axw/gocov/gocov | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Run tests | |
| run: gocov test ./... -race -failfast -timeout 1m |