bump golangci-lint, fix discovered problems

Also, improve the goveralls installation method.
This commit is contained in:
Dmitry Verkhoturov
2022-09-28 18:11:09 -05:00
committed by Umputun
parent a6a9270f63
commit 0728b28856
7 changed files with 14 additions and 24 deletions
+3 -3
View File
@@ -36,8 +36,8 @@ jobs:
- name: install golangci-lint and goveralls
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.46.1
go get -u github.com/mattn/goveralls
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GITHUB_WORKSPACE v1.49.0
go install github.com/mattn/goveralls@latest
- name: test and lint backend
run: |
@@ -59,7 +59,7 @@ jobs:
TZ: "America/Chicago"
- name: submit coverage
run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
run: goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
working-directory: backend
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}