From 585bc7e58353df1df6a3ddd9406d0140443067ee Mon Sep 17 00:00:00 2001 From: Chris Doherty Date: Tue, 16 Jan 2024 22:02:30 -0600 Subject: [PATCH] Update Go to 1.21 Signed-off-by: Chris Doherty --- .github/workflows/ci.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e648b2c..e74e9bd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,8 +6,10 @@ on: tags-ignore: - "v*" pull_request: + env: CGO_ENABLED: 0 + GO_VERSION: '1.21' jobs: verify: @@ -19,10 +21,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.20" - - - name: goimports - run: go install golang.org/x/tools/cmd/goimports@latest && goimports -d . | (! grep .) + go-version: "${{ env.GO_VERSION }}" - name: make vet run: make vet @@ -39,7 +38,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.20" + go-version: "${{ env.GO_VERSION }}" - name: Unit test run: make test