Skip to content

Commit 4400763

Browse files
committed
golang multi-version support: 1.23, 1.24
1 parent 007cd30 commit 4400763

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ jobs:
55
golangci-lint:
66
name: runner / golangci-lint
77
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
go-version:
11+
- '1.23'
12+
- '1.24'
813
steps:
914
- name: Check out code into the Go module directory
1015
uses: actions/checkout@v4
1116
- uses: actions/setup-go@v5
1217
with:
13-
go-version: '1.23'
18+
go-version: ${{ matrix.go-version }}
1419
cache: false
1520
- name: golangci-lint
1621
uses: golangci/golangci-lint-action@v6
@@ -62,14 +67,24 @@ jobs:
6267
tests:
6368
name: runner / tests
6469
runs-on: ubuntu-latest
70+
strategy:
71+
matrix:
72+
go-version:
73+
- '1.23'
74+
- '1.24'
6575
steps:
6676
- uses: actions/checkout@v4
6777
- uses: actions/setup-go@v5
6878
with:
69-
go-version: 1.23
79+
go-version: ${{ matrix.go-version }}
7080
- name: Unit Tests
7181
run: "make test"
7282
- name: Upload coverage report
7383
run: bash <(curl -s https://codecov.io/bash)
84+
85+
integration-tests:
86+
name: runner / tests
87+
runs-on: ubuntu-latest
88+
steps:
7489
- name: Integration tests
7590
run: "make compose-up-integration-test"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Step 1: Modules caching
2-
FROM golang:1.23.6-alpine3.21 as modules
2+
FROM golang:1.24.1-alpine3.21 as modules
33
COPY go.mod go.sum /modules/
44
WORKDIR /modules
55
RUN go mod download
66

77
# Step 2: Builder
8-
FROM golang:1.23.6-alpine3.21 as builder
8+
FROM golang:1.24.1-alpine3.21 as builder
99
COPY --from=modules /go/pkg /go/pkg
1010
COPY . /app
1111
WORKDIR /app

integration-test/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Step 1: Modules caching
2-
FROM golang:1.23.6-alpine3.21 as modules
2+
FROM golang:1.24.1-alpine3.21 as modules
33
COPY go.mod go.sum /modules/
44
WORKDIR /modules
55
RUN go mod download
66

77
# Step 2: Tests
8-
FROM golang:1.23.6-alpine3.21
8+
FROM golang:1.24.1-alpine3.21
99
COPY --from=modules /go/pkg /go/pkg
1010
COPY . /app
1111
WORKDIR /app

0 commit comments

Comments
 (0)