diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c46395..5eedd36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: id: go - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: start Redis uses: supercharge/redis-github-action@1.4.0 @@ -35,13 +35,13 @@ 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.47.2 + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GITHUB_WORKSPACE v1.50.1 go install github.com/mattn/goveralls@latest - name: run linters 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 + run: goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.golangci.yml b/.golangci.yml index 1a78e9c..b84ca8d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,18 +26,14 @@ linters: - revive - govet - unconvert - - megacheck - - structcheck - gas - gocyclo - dupl - misspell - unparam - - varcheck - - deadcode + - unused - typecheck - ineffassign - - varcheck - stylecheck - gochecknoinits - exportloopref