add github action for golangci

This commit is contained in:
Will Norris 2020-09-09 22:19:27 -07:00
parent d6e0ad0f93
commit 9f2d0f0dbc
2 changed files with 21 additions and 7 deletions

View file

@ -24,13 +24,6 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Run go fmt
if: runner.os != 'Windows'
run: diff -u <(echo -n) <(gofmt -d -s .)
- name: Run go vet
run: go vet ./...
- name: Run go test
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...