commit
8dfd0738aa
1 changed files with 11 additions and 28 deletions
39
.github/workflows/go.yml
vendored
39
.github/workflows/go.yml
vendored
|
@ -16,19 +16,18 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '^1.15'
|
go-version: '^1.18'
|
||||||
|
|
||||||
- name: Run golangci-lint
|
- name: Run golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
version: v1.44
|
version: v1.45.1
|
||||||
only-new-issues: true
|
only-new-issues: true
|
||||||
args: -c ./.golangci.yml
|
args: -c ./.golangci.yml
|
||||||
skip-go-installation: true
|
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
@ -36,36 +35,20 @@ jobs:
|
||||||
- name: Run go vet
|
- name: Run go vet
|
||||||
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 ./...
|
|
||||||
|
|
||||||
# gofmt is run (sufficiently; with excludes) as a part of golangci-lint.
|
|
||||||
# - name: Run gofmt
|
|
||||||
# run: bash -c 'test -z "$(gofmt -s -l .)"'
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '^1.15'
|
go-version: '^1.18'
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
|
||||||
- name: Test
|
- name: Run tests
|
||||||
run: ./test --test-only
|
run: ./test --test-only
|
||||||
|
|
Loading…
Add table
Reference in a new issue