From 0793ca190d9604e0254fab30905bc6ffbeb30fce Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Mon, 13 Feb 2023 14:19:53 +0100 Subject: [PATCH] tests: Upgrade to Go 1.20 (#749) * tests: Upgrade to Go 1.20 * Disable tests for 1.17 * Upgrade garble in goreleaser as well. * Upgrade garble --- .github/workflows/go.yml | 8 ++++---- .github/workflows/release.yml | 4 ++-- .goreleaser.yml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6e0e9154c2..ebcee0815b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,7 +11,7 @@ jobs: build: strategy: matrix: - go-version: [1.17.x, 1.18.x, 1.19.x] + go-version: [1.18.x, 1.19.x, 1.20.x] os: [ubuntu-latest, macos-latest, windows-latest] env: CGO_ENABLED: 0 @@ -48,7 +48,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.19.x + go-version: 1.20.x - name: Checkout code uses: actions/checkout@v2 @@ -70,7 +70,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.19.x + go-version: 1.20.x - name: Checkout code uses: actions/checkout@v2 @@ -85,7 +85,7 @@ jobs: run: go build github.com/klauspost/compress/s2/cmd/s2c && go build github.com/klauspost/compress/s2/cmd/s2d&&./s2c -verify s2c &&./s2d s2c.s2&&rm ./s2c&&rm s2d&&rm s2c.s2 - name: install garble - run: go install mvdan.cc/garble@v0.7.2 + run: go install mvdan.cc/garble@v0.9.2 - name: goreleaser deprecation run: curl -sfL https://git.io/goreleaser | VERSION=v1.9.2 sh -s -- check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49b0ace4e0..5d38acaaee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,10 +18,10 @@ jobs: name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.19.x + go-version: 1.20.x - name: install garble - run: go install mvdan.cc/garble@v0.7.2 + run: go install mvdan.cc/garble@v0.9.2 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/.goreleaser.yml b/.goreleaser.yml index a2bf06e94f..7a008a4d23 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,7 +3,7 @@ before: hooks: - ./gen.sh - - go install mvdan.cc/garble@v0.7.2 + - go install mvdan.cc/garble@v0.9.3 builds: -