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.
This commit is contained in:
Julio Lopez
2023-09-08 17:36:57 -07:00
committed by GitHub
parent 8736fca3aa
commit c4a3ddc514
12 changed files with 12 additions and 12 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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') }}

View File

@@ -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') }}

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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') }}