From 3ab97443360775ff3fb13a7be2efedb875805824 Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Thu, 10 Jun 2021 10:48:25 -0400 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c54c4c84..89ba48273 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,15 @@ jobs: timeout-minutes: 5 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 with: path: src/github.com/containerd/containerd