Update test script, config and workflow
This commit is contained in:
18
.github/workflows/go.yml
vendored
18
.github/workflows/go.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.29
|
||||
version: v1.44
|
||||
only-new-issues: true
|
||||
args: -c ./.golangci.yml
|
||||
skip-go-installation: true
|
||||
@@ -70,14 +70,16 @@ jobs:
|
||||
- name: Run go vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: Install golint
|
||||
run: bash -c "GOBIN=$(pwd) go get -u golang.org/x/lint/golint"
|
||||
|
||||
- name: Run golint
|
||||
run: ./golint -set_exit_status -min_confidence 1.0 ./...
|
||||
# golint is run (sufficiently; with excludes) as a part of golangci-lint.
|
||||
# - name: Install golint
|
||||
# run: bash -c "GOBIN=$(pwd) go get -u golang.org/x/lint/golint"
|
||||
#
|
||||
# - name: Run golint
|
||||
# run: ./golint -set_exit_status -min_confidence 1.0 ./...
|
||||
|
||||
- name: Run gofmt
|
||||
run: bash -c "test -z $(gofmt -s -l .)"
|
||||
# gofmt is run (sufficiently; with excludes) as a part of golangci-lint.
|
||||
# - name: Run gofmt
|
||||
# run: bash -c 'test -z "$(gofmt -s -l .)"'
|
||||
|
||||
test:
|
||||
name: Test
|
||||
|
||||
Reference in New Issue
Block a user