Skip to content

Commit

Permalink
upgrade test context
Browse files Browse the repository at this point in the history
  • Loading branch information
gritzkoo committed Sep 25, 2024
1 parent 4870f7e commit d30d29b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 245 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: setup golang
uses: actions/setup-go@v1
with:
go-version: "1.22"
go-version: "1.23"
- name: build package
env:
CGO_ENABLED: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
redis-version: [6]
go: ["1.22"]
go: ["1.23"]
steps:
- uses: actions/checkout@v2
- name: Sets up a Memcached server
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ profile.cov
./healthchecker
.vscode
main.go
*.out
*.log
10 changes: 3 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
test:
&default
container_name: golang_app
image: golang:1.22-alpine
image: golang:1.23-alpine
working_dir: /app
command: sh -c "go test -v ./..."
environment:
Expand All @@ -26,18 +26,14 @@ services:
command: go run main.go

redis:
image: redis
image: redis:latest
ports:
- 6379:6379

memcache:
image: memcached:1.4.21
image: memcached:latest
ports:
- 11211:11211

networks:
default:
name: gritzkoo-golang-health-checker

volumes:
godir: {}
38 changes: 3 additions & 35 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,48 +1,16 @@
module github.com/gritzkoo/golang-health-checker

go 1.22
go 1.23

require (
github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874
github.com/gin-gonic/gin v1.10.0
github.com/go-redis/redis v6.15.9+incompatible
gopkg.in/go-playground/assert.v1 v1.2.1
)

require (
github.com/bytedance/sonic v1.11.9 // indirect
github.com/bytedance/sonic/loader v0.1.1 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/gabriel-vasile/mimetype v1.4.4 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.22.0 // indirect
github.com/goccy/go-json v0.10.3 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/knz/go-libedit v1.10.1 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.33.1 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
golang.org/x/arch v0.8.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/sys v0.25.0 // indirect
)
124 changes: 6 additions & 118 deletions go.sum

Large diffs are not rendered by default.

83 changes: 0 additions & 83 deletions main.go

This file was deleted.

0 comments on commit d30d29b

Please sign in to comment.