From c4a3ddc514ee674af23dc43110ae167f2b820734 Mon Sep 17 00:00:00 2001 From: Julio Lopez <1953782+julio-lopez@users.noreply.github.com> Date: Fri, 8 Sep 2023 17:36:57 -0700 Subject: [PATCH] chore(ci): use 'with.go-version-file' in actions/setup-go (#3282) This simplifies managing the Go version used in CI, as it will only require updating the `go.mod` file on a version upgrade. --- .github/workflows/code-coverage.yml | 2 +- .github/workflows/compat-test.yml | 2 +- .github/workflows/endurance-test.yml | 2 +- .github/workflows/htmlui-tests.yml | 2 +- .github/workflows/license-check.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/make.yml | 2 +- .github/workflows/providers-core.yml | 2 +- .github/workflows/providers-extra.yml | 2 +- .github/workflows/race-detector.yml | 2 +- .github/workflows/stress-test.yml | 2 +- .github/workflows/tests.yml | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 1e040f37c..e74c9a5f0 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Run Tests diff --git a/.github/workflows/compat-test.yml b/.github/workflows/compat-test.yml index f6dafcfdc..1b1873d91 100644 --- a/.github/workflows/compat-test.yml +++ b/.github/workflows/compat-test.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Compat Test diff --git a/.github/workflows/endurance-test.yml b/.github/workflows/endurance-test.yml index 6e40b39f3..0a5d373a8 100644 --- a/.github/workflows/endurance-test.yml +++ b/.github/workflows/endurance-test.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Endurance Tests diff --git a/.github/workflows/htmlui-tests.yml b/.github/workflows/htmlui-tests.yml index 953870530..7769f48c4 100644 --- a/.github/workflows/htmlui-tests.yml +++ b/.github/workflows/htmlui-tests.yml @@ -33,7 +33,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Run Tests diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index c6c826d82..3cb3bb75a 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Download dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5d01a5939..17d027b35 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go if: ${{ !contains(matrix.os, 'ARMHF') }} diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index 6a965cb50..c0c78a54a 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -46,7 +46,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go if: ${{ !contains(matrix.os, 'ARMHF') }} diff --git a/.github/workflows/providers-core.yml b/.github/workflows/providers-core.yml index 66641dc25..1441a1574 100644 --- a/.github/workflows/providers-core.yml +++ b/.github/workflows/providers-core.yml @@ -31,7 +31,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Install Dependencies diff --git a/.github/workflows/providers-extra.yml b/.github/workflows/providers-extra.yml index 116e431fa..991fb37c8 100644 --- a/.github/workflows/providers-extra.yml +++ b/.github/workflows/providers-extra.yml @@ -31,7 +31,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Install Dependencies diff --git a/.github/workflows/race-detector.yml b/.github/workflows/race-detector.yml index ca40b45ea..68d469524 100644 --- a/.github/workflows/race-detector.yml +++ b/.github/workflows/race-detector.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Unit Tests diff --git a/.github/workflows/stress-test.yml b/.github/workflows/stress-test.yml index ac065e2ed..d7fa005d1 100644 --- a/.github/workflows/stress-test.yml +++ b/.github/workflows/stress-test.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go - name: Stress Test diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f16367f74..baf3a6b04 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,7 +44,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version-file: 'go.mod' check-latest: true id: go if: ${{ !contains(matrix.os, 'ARMHF') }}