diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f3e9dc..ae548bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,11 +19,20 @@ jobs: with: go-version: ${{ matrix.go }} - - name: Format - run: go fmt ./... + - name: Get dependencies + run: | + go get -v -t -d ./... - - name: Build - run: go build -v ./... + - name: Go Format + if: matrix.os == 'ubuntu-latest' && matrix.go == '1.17.x' + run: test -z "$(go fmt ./...)" + + - name: Go Vet + if: matrix.os == 'ubuntu-latest' && matrix.go == '1.17.x' + run: test -z "$(go vet ./...)" - name: Test run: go test -v ./... + + - name: Build + run: go build -v ./...