Skip to content

Commit

Permalink
ci: update Go version used by workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestelfer committed Oct 26, 2023
1 parent 44f6d46 commit ccaf96c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.15.5"
go-version-file: "go.mod"

- name: Build
run: go build main.go
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.15.5"
go-version-file: "go.mod"

- name: Prepare coverage
run: mkdir coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.15.5"
go-version-file: "go.mod"
id: go

- name: Generate docs
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/goreleaser-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Check GoReleaser config
uses: goreleaser/goreleaser-action@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ jobs:
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
go_version_file: "go.mod"
level: warning
2 changes: 1 addition & 1 deletion .github/workflows/readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.15.5"
go-version-file: "go.mod"
id: go

- name: Generate readme
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.16.0"
go-version-file: "go.mod"
if: ${{ steps.release.outputs.release_created }}

- name: Run GoReleaser
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.15.5"
go-version-file: "go.mod"

# Because of a bug in go-git that that makes cloning of a folder in another Windows drive letter,
# the test has to be moved and run in another folder on Windows (until the bug is fixed)
Expand Down

0 comments on commit ccaf96c

Please sign in to comment.