mirror of
https://github.com/kopia/kopia.git
synced 2026-05-24 22:54:55 -04:00
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:
2
.github/workflows/code-coverage.yml
vendored
2
.github/workflows/code-coverage.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/compat-test.yml
vendored
2
.github/workflows/compat-test.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/endurance-test.yml
vendored
2
.github/workflows/endurance-test.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/htmlui-tests.yml
vendored
2
.github/workflows/htmlui-tests.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/license-check.yml
vendored
2
.github/workflows/license-check.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -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') }}
|
||||
|
||||
2
.github/workflows/make.yml
vendored
2
.github/workflows/make.yml
vendored
@@ -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') }}
|
||||
|
||||
2
.github/workflows/providers-core.yml
vendored
2
.github/workflows/providers-core.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/providers-extra.yml
vendored
2
.github/workflows/providers-extra.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/race-detector.yml
vendored
2
.github/workflows/race-detector.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/stress-test.yml
vendored
2
.github/workflows/stress-test.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -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') }}
|
||||
|
||||
Reference in New Issue
Block a user