Skip to content

Commit

Permalink
ci: use go.mod as go version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Jul 26, 2024
1 parent 6157db2 commit eb82b2c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
go-version-file: go.mod
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

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

- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Checkout code
uses: actions/checkout@v4
- name: Test
Expand All @@ -35,6 +37,8 @@ jobs:
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare lefthook
Expand Down Expand Up @@ -63,6 +67,8 @@ jobs:
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Checkout code
uses: actions/checkout@v4
- name: Build binaries
Expand Down

0 comments on commit eb82b2c

Please sign in to comment.