Skip to content

Commit 7400273

Browse files
committed
Upgrade to go 1.23
1 parent ec56dc7 commit 7400273

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

.github/workflows/lint.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@ name: golangci-lint
22
on:
33
pull_request:
44
branches: ["**"]
5-
env:
6-
GOPRIVATE: github.com/DIMO-Network
7-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5+
push:
6+
branches:
7+
- main
88
jobs:
99
golangci:
10+
# Condition to skip merge commits
11+
if: "!contains(github.event.head_commit.message, 'Merge pull request')"
1012
runs-on: ubuntu-latest
1113

1214
name: lint
1315
steps:
14-
- name: Install Go
15-
uses: actions/setup-go@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-go@v5
1618
with:
17-
go-version: 1.21.x
18-
19-
- name: Checkout code
20-
uses: actions/checkout@v4
19+
go-version-file: 'go.mod'
2120

2221
- name: golangci-lint
2322
uses: golangci/golangci-lint-action@v6

go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/DIMO-Network/contract-event-processor
22

3-
go 1.22.3
4-
5-
toolchain go1.23.5
3+
go 1.23
64

75
require (
86
github.com/Shopify/sarama v1.33.0

resources/docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21 AS build
1+
FROM golang:1.23 AS build
22

33
RUN useradd -u 10001 dimo
44

0 commit comments

Comments
 (0)