Update go.yml

This commit is contained in:
Lerking
2023-02-17 10:47:04 +01:00
committed by GitHub
parent 1c7dd0ede6
commit ba8e286ecd

View File

@@ -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