ci: make go 1.25 the min required version

some of the dependencies (e.g. lipgloss) require 1.25 and that's what we specified in go.mod but hadn't updated the CI and nix flake.
This commit is contained in:
ibrahim dursun
2026-03-10 22:46:40 +00:00
parent 91a5d76ba9
commit 4d0565063d
4 changed files with 23 additions and 22 deletions
+17 -16
View File
@@ -5,30 +5,31 @@ on:
pull_request:
branches: ["main"]
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version: '1.24'
go-version: '1.25.0'
- name: Check if `go fmt` and `go mod tidy` make any changes
run: |
set -x
go fmt ./...
go mod tidy
git diff --exit-code
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
needs: lint
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25.0'
- name: Test
run: go test -v ./...
+3 -3
View File
@@ -20,11 +20,11 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version: "1.24"
go-version: "1.25.0"
- name: Get release version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
+2 -2
View File
@@ -1,10 +1,10 @@
{
lib,
buildGoModule,
buildGo125Module,
version ? "dev",
}:
buildGoModule {
buildGo125Module {
inherit version;
pname = "jjui";
+1 -1
View File
@@ -6,7 +6,7 @@
name = "jjui-dev";
buildInputs = with pkgs; [
# Go toolchain
go
go_1_25
gotools
jujutsu