From f8fbaeea0479cfa8a56d3e4e208d9664097a79a8 Mon Sep 17 00:00:00 2001 From: "Vojtech Vitek (golang.cz)" Date: Sat, 4 May 2024 11:35:23 +0200 Subject: [PATCH] Update Go version in CI (#32) * Update Go version in CI * Remove obsolete GO111MODULE: off * Update github actions --- .github/workflows/ci.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 142f5f9..4f33035 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ jobs: test: env: GOPATH: ${{ github.workspace }} - GO111MODULE: off defaults: run: @@ -12,21 +11,21 @@ jobs: strategy: matrix: - go-version: [1.14.x, 1.15.x, 1.16.x] + go-version: [1.16.x, 1.19.x, 1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - with: - path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - - name: Test - run: | - go get -d -t ./... - go test -v ./... + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v4 + with: + path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} + - name: Test + run: | + go get -d -t ./... + go test -v ./...