Update go.yml
This commit is contained in:
21
.github/workflows/go.yml
vendored
21
.github/workflows/go.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.16.x', '1.17.x', '1.18.x', '1.19.x', '1.20.x' ]
|
||||
go-version: [ '1.19.x', '1.20.x' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -20,11 +20,18 @@ jobs:
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
# You can test your matrix by printing the current Go version
|
||||
- name: Display Go version
|
||||
run: go version
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
go version
|
||||
go get -u golang.org/x/lint/golint
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
- name: Run build
|
||||
run: go build .
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
- name: Run vet & lint
|
||||
run: |
|
||||
go vet .
|
||||
golint .
|
||||
|
||||
- name: Run testing
|
||||
run: cd test && go test -v
|
||||
|
||||
Reference in New Issue
Block a user