update go.yml (#534)

This commit is contained in:
binbin.zhang 2022-10-27 20:50:48 +08:00 committed by GitHub
parent d7d2210404
commit cad5a5ec2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
config:
- go_version: 1.17
- go_version: 1.15
steps:
- name: Set up Go 1.x
@ -23,16 +23,9 @@ jobs:
go-version: ${{ matrix.config.go_version }}
id: go
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Install goimports
run: go get golang.org/x/tools/cmd/goimports
- name: Test
run: |
diff -u <(echo -n) <(gofmt -d -s .)