diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index eaa5678..7dd1c8b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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