Multiple CI and code fixes (#486)

* enable golangci-lint for momeory_store example

* add race_test option to makefile

* prune lost goroutine in TestRest_Shutdown

* run race tests without cache

* fix ci pipeline

* fix typos
This commit is contained in:
Dmitry Verkhoturov
2019-12-09 12:30:07 -06:00
committed by Umputun
parent b40cb7866b
commit 30c42ce36b
7 changed files with 24 additions and 13 deletions
+6 -1
View File
@@ -36,7 +36,7 @@ jobs:
go test -mod=vendor -timeout=60s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "_mock.go" > $GITHUB_WORKSPACE/profile.cov
cd ../_example/memory_store
go test ./...
go test -race ./...
- name: install golangci-lint and goveralls
run: |
@@ -50,6 +50,11 @@ jobs:
--enable=megacheck --enable=structcheck --enable=gas --enable=gocyclo --enable=dupl --enable=misspell \
--enable=unparam --enable=varcheck --enable=deadcode --enable=typecheck \
--enable=ineffassign --enable=varcheck ./... ;
cd _example/memory_store
$GITHUB_WORKSPACE/golangci-lint run --out-format=tab --disable-all --tests=false --enable=unconvert \
--enable=megacheck --enable=structcheck --enable=gas --enable=gocyclo --enable=dupl --enable=misspell \
--enable=unparam --enable=varcheck --enable=deadcode --enable=typecheck \
--enable=ineffassign --enable=varcheck ./... ;
- name: submit coverage
run: |