Skip to content

Commit 98726af

Browse files
committed
chore: update dependencies and improve ci configuration
1 parent 989a0bf commit 98726af

7 files changed

Lines changed: 19 additions & 24 deletions

File tree

.github/workflows/continuous-integration.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: install go
18-
uses: actions/setup-go@v4
18+
uses: actions/setup-go@v5
1919
with:
20-
go-version: 1.24.3
20+
go-version: '1.26'
2121

2222
- name: run tests
2323
run: go test -v ./...
2424

2525
- name: run linting
26-
uses: golangci/golangci-lint-action@v6
26+
uses: golangci/golangci-lint-action@v7
2727
with:
2828
version: latest
2929

.github/workflows/publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
run: git fetch --force --tags
2323

2424
- name: setup go
25-
uses: actions/setup-go@v4
25+
uses: actions/setup-go@v5
2626
with:
2727
go-version: stable
2828

2929
- name: publish package
30-
uses: goreleaser/goreleaser-action@v5
30+
uses: goreleaser/goreleaser-action@v7
3131
with:
3232
distribution: goreleaser
3333
version: latest
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: fetch docker metadata
4646
id: metadata
47-
uses: docker/metadata-action@v5
47+
uses: docker/metadata-action@v6
4848
with:
4949
images: 'ghcr.io/${{ github.repository }}'
5050
tags: |
@@ -54,7 +54,7 @@ jobs:
5454
type=sha
5555
5656
- name: build and push container image
57-
uses: docker/build-push-action@v5
57+
uses: docker/build-push-action@v7
5858
with:
5959
context: .
6060
push: true

.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
77
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
88

9+
version: 2
10+
911
before:
1012
hooks:
1113
- go mod tidy

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
FROM golang:1.24.3 AS build
1+
FROM golang:1.26.2 AS build
22

33
WORKDIR /action
44

5+
COPY go.mod go.sum ./
6+
RUN go mod download
7+
58
COPY . .
69

710
RUN CGO_ENABLED=0 go build -o pull-request-title-validator
811

9-
FROM alpine:latest
12+
FROM alpine:3.21
1013

1114
COPY --from=build /action/pull-request-title-validator /pull-request-title-validator
1215

go.mod

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module github.com/kontrolplane/pull-request-title-validator
22

3-
go 1.24.3
3+
go 1.26.2
44

5-
require github.com/caarlos0/env v3.5.0+incompatible
6-
7-
require github.com/stretchr/testify v1.10.0 // indirect
5+
require github.com/caarlos0/env/v11 v11.3.1

go.sum

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
github.com/caarlos0/env v3.5.0+incompatible h1:Yy0UN8o9Wtr/jGHZDpCBLpNrzcFLLM2yixi/rBrKyJs=
2-
github.com/caarlos0/env v3.5.0+incompatible/go.mod h1:tdCsowwCzMLdkqRYDlHpZCp2UooDD3MspDBjZ2AD02Y=
3-
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
4-
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
5-
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
6-
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
7-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
8-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
9-
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
10-
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
1+
github.com/caarlos0/env/v11 v11.3.1 h1:cArPWC15hWmEt+gWk7YBi7lEXTXCvpaSdCiZE2X5mCA=
2+
github.com/caarlos0/env/v11 v11.3.1/go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U=

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"regexp"
99
"strings"
1010

11-
"github.com/caarlos0/env"
11+
"github.com/caarlos0/env/v11"
1212
)
1313

1414
const (

0 commit comments

Comments
 (0)