Update to setup-go@v4 action

The latest setup-go action caches the Go pkg cache and may have several
minute-per-run speed improvement on CI runs which have to fill the
pkg cache.

Signed-off-by: Phil Estes <estesp@amazon.com>
This commit is contained in:
Phil Estes 2023-04-07 15:26:40 -04:00
parent 7cd72cce99
commit aee3587651
No known key found for this signature in database
GPG Key ID: FE2598126B196A38

View File

@ -34,7 +34,7 @@ jobs:
os: [ubuntu-20.04, macos-12, windows-2019] os: [ubuntu-20.04, macos-12, windows-2019]
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
@ -55,7 +55,7 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
@ -88,7 +88,7 @@ jobs:
working-directory: src/github.com/containerd/containerd working-directory: src/github.com/containerd/containerd
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
@ -120,7 +120,7 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -153,7 +153,7 @@ jobs:
goarm: "7" goarm: "7"
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -209,7 +209,7 @@ jobs:
os: [ubuntu-20.04, macos-12, windows-2019, windows-2022] os: [ubuntu-20.04, macos-12, windows-2019, windows-2022]
go-version: ["1.20.3", "1.19.8"] go-version: ["1.20.3", "1.19.8"]
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
@ -243,7 +243,7 @@ jobs:
working-directory: src/github.com/containerd/containerd working-directory: src/github.com/containerd/containerd
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
@ -398,7 +398,7 @@ jobs:
env: env:
GOTEST: gotestsum -- GOTEST: gotestsum --
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
@ -522,7 +522,7 @@ jobs:
GOTEST: gotestsum -- GOTEST: gotestsum --
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3 - uses: actions/checkout@v3