Skip to content

Commit

Permalink
chore: gha job to derive go version from go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaboyce committed Jul 21, 2024
1 parent 1fcce45 commit 22b4d5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version-file: "go.mod"

- name: Test
run: |
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version-file: "go.mod"

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version-file: "go.mod"

- name: Install dependency required for linux builds
if: matrix.os == 'ubuntu-20.04'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21.x
go-version-file: "go.mod"

- name: Install dependency required for linux builds
if: matrix.os == 'ubuntu-20.04'
Expand Down

0 comments on commit 22b4d5b

Please sign in to comment.