Skip to content

Commit

Permalink
ci: Use Go version from go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Jan 21, 2025
1 parent d1a1862 commit 1959389
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
branches: [ '*' ]
workflow_dispatch:

env:
GO_VERSION: 1.22.x

jobs:

lint:
Expand All @@ -22,7 +19,7 @@ jobs:
- uses: actions/setup-go@v5
name: Set up Go
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: false
- uses: golangci/golangci-lint-action@v6
name: Install golangci-lint
Expand All @@ -43,7 +40,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
- name: Build tmux-fastcopy
run: make build
Expand All @@ -67,7 +64,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true

- name: Checkout Tmux
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
cache: true

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Install parse-changelog
uses: taiki-e/install-action@v2
with:
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/abhinav/tmux-fastcopy

go 1.23.4

toolchain go1.23.5
go 1.23.5

require (
github.com/benbjohnson/clock v1.3.5
Expand Down
4 changes: 1 addition & 3 deletions integration/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/abhinav/tmux-fastcopy/integration

go 1.23.4

toolchain go1.23.5
go 1.23.5

require (
github.com/abhinav/tmux-fastcopy v0.14.1
Expand Down

0 comments on commit 1959389

Please sign in to comment.