Skip to content

Commit a96479a

Browse files
destinyoooodk-lockdown
authored andcommitted
feat: upgrade go version to 1.23
1 parent 6972c46 commit a96479a

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
test:
3434
strategy:
3535
matrix:
36-
go-version: [ 1.18.x ]
36+
go-version: [ 1.23.x ]
3737
# The type of runner that the job will run on
3838
runs-on: ubuntu-latest
3939

@@ -55,14 +55,17 @@ jobs:
5555
- name: Unit Tests
5656
run: |
5757
mkdir -p build
58-
go test -gcflags=all=-l $(go list ./... | grep -v /test/ | grep -v /parser | grep -v /types) -coverprofile=coverage.txt -covermode=atomic
58+
go test -gcflags=all=-l ./pkg/... -coverprofile=coverage.txt -covermode=atomic
5959
6060
- name: Post Coverage
6161
run: bash <(curl -s https://codecov.io/bash)
6262

6363
- name: Shutdown Ubuntu MySQL (SUDOx)
6464
run: sudo service mysql stop
6565

66+
- name: Setup Docker compose
67+
uses: ndeloof/install-compose-action@v0.0.1
68+
6669
- name: Integration Tests
6770
shell: bash
6871
run: make integration-test

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18.3 as builder
1+
FROM golang:1.23.3 as builder
22
WORKDIR /app
33
ADD . /app
44
RUN make build-local

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cectc/dbpack
22

3-
go 1.18
3+
go 1.23
44

55
require (
66
github.com/agiledragon/gomonkey/v2 v2.7.0

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ github.com/containerd/continuity v0.0.0-20201208142359-180525291bb7/go.mod h1:kR
259259
github.com/containerd/continuity v0.0.0-20210208174643-50096c924a4e/go.mod h1:EXlVlkqNba9rJe3j7w3Xa924itAMLgZH4UD/Q4PExuQ=
260260
github.com/containerd/continuity v0.1.0/go.mod h1:ICJu0PwR54nI0yPEnJ6jcS+J7CZAUXrLh8lPo2knzsM=
261261
github.com/containerd/continuity v0.2.2 h1:QSqfxcn8c+12slxwu00AtzXrsami0MJb/MQs9lOLHLA=
262+
github.com/containerd/continuity v0.2.2/go.mod h1:pWygW9u7LtS1o4N/Tn0FoCFDIXZ7rxcMX7HX1Dmibvk=
262263
github.com/containerd/fifo v0.0.0-20180307165137-3d5202aec260/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI=
263264
github.com/containerd/fifo v0.0.0-20190226154929-a9fb20d87448/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI=
264265
github.com/containerd/fifo v0.0.0-20200410184934-f15a3290365b/go.mod h1:jPQ2IAeZRCYxpS/Cm1495vGFww6ecHmMk1YJH2Q5ln0=

0 commit comments

Comments
 (0)