Add proper Go version before project checks

Due to a change in Go, the go.mod file cannot declare a version of Go
above the installed `go version`; until the default Go version in GitHub
actions virt environments is 1.16, we have to install 1.16 before
running the project checks now.

Signed-off-by: Phil Estes <estesp@amazon.com>
This commit is contained in:
Phil Estes 2021-06-10 10:48:25 -04:00
parent a545df345e
commit 3ab9744336
No known key found for this signature in database
GPG Key ID: FE2598126B196A38

View File

@ -51,6 +51,15 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.4'
- shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
path: src/github.com/containerd/containerd path: src/github.com/containerd/containerd