diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fa43a60..61bc92d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ test: - main - merge_requests script: + - go get github.com/go-redis/redis/v8 - go test ./... push: diff --git a/build/package/Containerfile b/build/package/Containerfile index e93c1b4..c906592 100644 --- a/build/package/Containerfile +++ b/build/package/Containerfile @@ -14,6 +14,7 @@ RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' ./.. ########## FROM builder AS tester +RUN go get github.com/go-redis/redis/v8 RUN go test ./... ########## diff --git a/cmd/mothd/redis_state.go b/cmd/mothd/redis_state.go index 1524634..55e2a3c 100644 --- a/cmd/mothd/redis_state.go +++ b/cmd/mothd/redis_state.go @@ -185,7 +185,7 @@ func (s *RedisState) AwardPoints(teamID, category string, points int) error { } awardTime := time.Now().Unix() - point_string := fmt.Sprintf("%s %s %s", teamID, category, points) + point_string := fmt.Sprintf("%s %s %d", teamID, category, points) new_member := redis.Z{ Score: float64(awardTime),