From dc7385f65ffb459f38ba333d11863e17e22f2eed Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 15 Aug 2023 10:33:52 -0400 Subject: [PATCH] workflows: use symbolic name oldstable instead of a particular version The actions/setup-go action has supported symbolic names of `stable` and `oldstable` for a bit. Instead of having to constantly update the workflow every time Go does a new release use the `oldstable` keyword in our workflow so that we're always testing with the older stable release of Go. We choose the older stable version because we do not want to accidentally introduce something new that requires a feature of the newer Go release. Signed-off-by: John Mulligan --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a86ede4..336a8af6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: oldstable - uses: actions/checkout@v3 - name: Build run: make @@ -23,7 +23,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: oldstable - uses: actions/checkout@v3 - name: Install revive run: go install github.com/mgechev/revive@latest @@ -46,7 +46,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: oldstable - uses: actions/checkout@v3 - name: run the tests run: make test @@ -100,7 +100,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: "1.19" + go-version: oldstable - name: Install k3d run: curl -L --silent --fail "https://raw.githubusercontent.com/rancher/k3d/main/install.sh" | bash # The TAG env var can interfere with the k3d install script.