From 7415e1aa563ad65fe84667dc46571d92e8ca6145 Mon Sep 17 00:00:00 2001 From: Aditya Manthramurthy Date: Fri, 3 Mar 2023 10:15:03 -0800 Subject: [PATCH] Switch to go1.20 in CI (#16743) --- .github/workflows/go-cross.yml | 6 +++--- .github/workflows/go-fips.yml | 23 +++++++++++++++-------- .github/workflows/go-healing.yml | 4 ++-- .github/workflows/go-lint.yml | 4 ++-- .github/workflows/go.yml | 4 ++-- .github/workflows/iam-integrations.yaml | 4 ++-- .github/workflows/markdown-lint.yaml | 2 +- .github/workflows/replication.yaml | 4 ++-- .github/workflows/upgrade-ci-cd.yaml | 4 ++-- .github/workflows/vulncheck.yml | 2 +- 10 files changed, 32 insertions(+), 25 deletions(-) diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml index ea7620c67..055677d8b 100644 --- a/.github/workflows/go-cross.yml +++ b/.github/workflows/go-cross.yml @@ -20,11 +20,11 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.19.x] + go-version: [1.20.x] os: [ubuntu-latest] steps: - - uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 - - uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 with: go-version: ${{ matrix.go-version }} check-latest: true diff --git a/.github/workflows/go-fips.yml b/.github/workflows/go-fips.yml index 706901335..020564651 100644 --- a/.github/workflows/go-fips.yml +++ b/.github/workflows/go-fips.yml @@ -20,21 +20,28 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.19.x] + go-version: [1.20.x] os: [ubuntu-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Setup dockerfile for build test run: | - echo "FROM golang:1.19.4" >> Dockerfile.fips.test - echo "COPY . /minio" >> Dockerfile.fips.test - echo "WORKDIR /minio" >> Dockerfile.fips.test - echo "ENV GOEXPERIMENT=boringcrypto" >> Dockerfile.fips.test - echo "RUN make" >> Dockerfile.fips.test + GO_VERSION=$(go version | cut -d ' ' -f 3 | sed 's/go//') + echo Detected go version $GO_VERSION + cat > Dockerfile.fips.test <