Skip to content

Commit 81aba58

Browse files
authored
feat: enable refelction of the extension server (#8)
* feat: enable refelction of the extension server * fix: failed to delete test suite * upgrade go 1.20 to 1.22 --------- Co-authored-by: Rick <[email protected]>
1 parent 9935195 commit 81aba58

File tree

6 files changed

+190
-100
lines changed

6 files changed

+190
-100
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up Go
1111
uses: actions/setup-go@v3
1212
with:
13-
go-version: 1.20.x
13+
go-version: 1.22.x
1414
- uses: actions/[email protected]
1515
- name: Unit Test
1616
run: |
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Go
2323
uses: actions/setup-go@v3
2424
with:
25-
go-version: 1.20.x
25+
go-version: 1.22.x
2626
- uses: actions/[email protected]
2727
- name: Run GoReleaser
2828
uses: goreleaser/goreleaser-action@v6

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_BUILDER=docker.io/library/golang:1.20
1+
ARG GO_BUILDER=docker.io/library/golang:1.22
22
ARG BASE_IMAGE=docker.io/library/alpine:3.12
33

44
FROM ${GO_BUILDER} AS builder

e2e/compose.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@ services:
2020
context: ..
2121
dockerfile: Dockerfile
2222
args:
23-
- "GO_BUILDER=ghcr.io/linuxsuren/library/golang:1.20"
23+
- "GO_BUILDER=ghcr.io/linuxsuren/library/golang:1.22"
2424
- "BASE_IMAGE=ghcr.io/linuxsuren/library/alpine:3.12"
25+
ports:
26+
- "7071:7071"
27+
depends_on:
28+
mysql:
29+
condition: service_healthy
30+
links:
31+
- mysql
2532
mysql:
26-
image: mysql:8.2.0
33+
image: ghcr.io/linuxsuren/library/mysql:8.2.0
2734
command: --default-authentication-plugin=mysql_native_password
2835
environment:
2936
MYSQL_ROOT_PASSWORD: root
@@ -34,6 +41,8 @@ services:
3441
timeout: 60s
3542
retries: 10
3643
start_period: 3s
44+
ports:
45+
- "3306:3306"
3746

3847
volumes:
3948
cache:

go.mod

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,97 @@
11
module github.com/linuxsuren/atest-ext-store-orm
22

3-
go 1.20
3+
go 1.22.2
4+
5+
toolchain go1.22.4
46

57
require (
6-
github.com/linuxsuren/api-testing v0.0.17-0.20240409115351-63cb1196f513
7-
github.com/spf13/cobra v1.7.0
8-
github.com/stretchr/testify v1.8.4
8+
github.com/linuxsuren/api-testing v0.0.18-0.20240710135821-b23459a5c286
9+
github.com/spf13/cobra v1.8.0
10+
github.com/stretchr/testify v1.9.0
911
gorm.io/driver/mysql v1.5.2
1012
gorm.io/driver/postgres v1.5.4
1113
gorm.io/gorm v1.25.5
1214
)
1315

1416
require (
1517
github.com/jhump/protoreflect v1.15.3 // indirect
16-
google.golang.org/grpc v1.57.0 // indirect
18+
google.golang.org/grpc v1.62.1 // indirect
1719
)
1820

1921
require (
2022
github.com/Masterminds/goutils v1.1.1 // indirect
21-
github.com/Masterminds/semver/v3 v3.2.0 // indirect
23+
github.com/Masterminds/semver/v3 v3.2.1 // indirect
2224
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
2325
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 // indirect
2426
github.com/beorn7/perks v1.0.1 // indirect
27+
github.com/blang/semver/v4 v4.0.0 // indirect
2528
github.com/bufbuild/protocompile v0.6.0 // indirect
2629
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2730
github.com/davecgh/go-spew v1.1.1 // indirect
2831
github.com/expr-lang/expr v1.15.6 // indirect
2932
github.com/flopp/go-findfont v0.1.0 // indirect
3033
github.com/ghodss/yaml v1.0.0 // indirect
34+
github.com/go-logr/logr v1.4.1 // indirect
35+
github.com/go-logr/zapr v1.3.0 // indirect
36+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
37+
github.com/go-openapi/jsonreference v0.21.0 // indirect
38+
github.com/go-openapi/spec v0.21.0 // indirect
39+
github.com/go-openapi/swag v0.23.0 // indirect
3140
github.com/go-sql-driver/mysql v1.7.0 // indirect
32-
github.com/golang/protobuf v1.5.3 // indirect
33-
github.com/google/uuid v1.3.0 // indirect
34-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
35-
github.com/huandu/xstrings v1.3.3 // indirect
36-
github.com/imdario/mergo v0.3.12 // indirect
41+
github.com/golang/protobuf v1.5.4 // indirect
42+
github.com/google/uuid v1.6.0 // indirect
43+
github.com/gorilla/mux v1.8.1 // indirect
44+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
45+
github.com/huandu/xstrings v1.4.0 // indirect
46+
github.com/imdario/mergo v0.3.16 // indirect
3747
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3848
github.com/jackc/pgpassfile v1.0.0 // indirect
3949
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
4050
github.com/jackc/pgx/v5 v5.4.3 // indirect
4151
github.com/jinzhu/inflection v1.0.0 // indirect
4252
github.com/jinzhu/now v1.1.5 // indirect
53+
github.com/josharian/intern v1.0.0 // indirect
4354
github.com/linuxsuren/go-fake-runtime v0.0.4 // indirect
4455
github.com/linuxsuren/unstructured v0.0.1 // indirect
45-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
46-
github.com/mitchellh/copystructure v1.0.0 // indirect
47-
github.com/mitchellh/reflectwalk v1.0.0 // indirect
56+
github.com/mailru/easyjson v0.7.7 // indirect
57+
github.com/mitchellh/copystructure v1.2.0 // indirect
58+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
4859
github.com/phpdave11/gofpdi v1.0.14-0.20211212211723-1f10f9844311 // indirect
4960
github.com/pkg/errors v0.9.1 // indirect
5061
github.com/pmezard/go-difflib v1.0.0 // indirect
51-
github.com/prometheus/client_golang v1.16.0 // indirect
52-
github.com/prometheus/client_model v0.3.0 // indirect
53-
github.com/prometheus/common v0.42.0 // indirect
54-
github.com/prometheus/procfs v0.10.1 // indirect
55-
github.com/sergi/go-diff v1.2.0 // indirect
62+
github.com/prometheus/client_golang v1.19.0 // indirect
63+
github.com/prometheus/client_model v0.6.0 // indirect
64+
github.com/prometheus/common v0.50.0 // indirect
65+
github.com/prometheus/procfs v0.12.0 // indirect
66+
github.com/sergi/go-diff v1.3.1 // indirect
5667
github.com/shopspring/decimal v1.3.1 // indirect
5768
github.com/signintech/gopdf v0.18.0 // indirect
5869
github.com/spf13/cast v1.5.0 // indirect
5970
github.com/spf13/pflag v1.0.5 // indirect
71+
github.com/swaggest/jsonschema-go v0.3.70 // indirect
72+
github.com/swaggest/openapi-go v0.2.50 // indirect
73+
github.com/swaggest/refl v1.3.0 // indirect
74+
github.com/swaggest/rest v0.2.66 // indirect
75+
github.com/swaggest/usecase v1.3.1 // indirect
6076
github.com/tidwall/gjson v1.14.4 // indirect
6177
github.com/tidwall/match v1.1.1 // indirect
6278
github.com/tidwall/pretty v1.2.1 // indirect
63-
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
79+
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
6480
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
6581
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
66-
golang.org/x/crypto v0.17.0 // indirect
67-
golang.org/x/net v0.18.0 // indirect
68-
golang.org/x/oauth2 v0.14.0 // indirect
69-
golang.org/x/sync v0.3.0 // indirect
70-
golang.org/x/sys v0.15.0 // indirect
82+
go.uber.org/multierr v1.11.0 // indirect
83+
go.uber.org/zap v1.27.0 // indirect
84+
golang.org/x/crypto v0.21.0 // indirect
85+
golang.org/x/net v0.23.0 // indirect
86+
golang.org/x/oauth2 v0.18.0 // indirect
87+
golang.org/x/sync v0.6.0 // indirect
88+
golang.org/x/sys v0.18.0 // indirect
7189
golang.org/x/text v0.14.0 // indirect
72-
google.golang.org/appengine v1.6.7 // indirect
73-
google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect
74-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect
75-
google.golang.org/protobuf v1.31.0 // indirect
90+
google.golang.org/appengine v1.6.8 // indirect
91+
google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 // indirect
92+
google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 // indirect
93+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
94+
google.golang.org/protobuf v1.33.0 // indirect
7695
gopkg.in/yaml.v2 v2.4.0 // indirect
7796
gopkg.in/yaml.v3 v3.0.1 // indirect
7897
)

0 commit comments

Comments
 (0)