From 66aade7edffa3e82d73e940b4df123721c37655f Mon Sep 17 00:00:00 2001 From: Sergio Salvatore Date: Tue, 20 Dec 2022 13:15:58 -0500 Subject: [PATCH] Build with Go 1.18 and 1.19 - as of this writing they are the current and previous major versions of Go. - remove unnecessary GO111MODULE declarations (it defaults to `on` as of Go 1.17) --- .github/workflows/go.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bf6284b..f262440 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,37 +7,29 @@ jobs: strategy: matrix: os: [macos-latest, ubuntu-latest] - goversion: [1.14, 1.15] + goversion: [1.18, 1.19] steps: - name: Set up Go ${{matrix.goversion}} on ${{matrix.os}} - uses: actions/setup-go@v1 + uses: actions/setup-go@v3 with: go-version: ${{matrix.goversion}} id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: gofmt run: | [[ -z $(gofmt -l $(find . -name '*.go') ) ]] - name: Get dependencies - env: - GO111MODULE: on run: go mod download - name: Vet - env: - GO111MODULE: on run: go vet -mod=readonly ./... - name: Test - env: - GO111MODULE: on run: go test -mod=readonly -v -count 2 ./... - name: Race Test - env: - GO111MODULE: on run: go test -race -mod=readonly -v -count 2 ./...