Skip to content

Commit 89956fa

Browse files
kurtmcclaude
andcommitted
Fix CI: bump builder to golang:1.26 and modernize test workflow
The gitea SDK requires go >= 1.26. The test workflow was still on go 1.14/1.15 and could not build the module. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 91a4cea commit 89956fa

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,15 @@ on: [push, pull_request]
22
name: Test
33
jobs:
44
test:
5-
strategy:
6-
matrix:
7-
go-version: [1.14.x, 1.15.x]
8-
os: [ubuntu-latest, macos-latest]
9-
runs-on: ${{ matrix.os }}
5+
runs-on: ubuntu-latest
106
steps:
7+
- name: Checkout code
8+
uses: actions/checkout@v4
119
- name: Install Go
12-
uses: actions/setup-go@v2
10+
uses: actions/setup-go@v5
1311
with:
14-
go-version: ${{ matrix.go-version }}
15-
- name: Checkout code
16-
uses: actions/checkout@v2
12+
go-version-file: go.mod
1713
- name: Install Task
1814
run: curl -sL https://taskfile.dev/install.sh | sh
1915
- name: Run CI Task
2016
run: ./bin/task ci
21-

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ADD scripts/install_git_crypt.sh install_git_crypt.sh
1313
RUN ./install_git_crypt.sh && rm ./install_git_crypt.sh
1414
RUN rm -rf scripts
1515

16-
FROM golang:1.25 as builder
16+
FROM golang:1.26 as builder
1717
WORKDIR /go/src/github.com/telia-oss/github-pr-resource
1818
ENV GOOS=$GOOS
1919
ENV GOARCH=$GOARCH

0 commit comments

Comments
 (0)