mirror of
https://github.com/hanzoai/pubsub-go.git
synced 2026-10-30 18:23:30 +00:00
Modules declare go 1.27.1 and the build images follow. go fix applied the modernizers; omitzero is not applied, since it changes what the JSON says. Co-authored-by: Hanzo Dev <[email protected]>
8 lines
338 B
Docker
8 lines
338 B
Docker
FROM golang:1.27.1
|
|
WORKDIR /usr/src/nats.go
|
|
COPY . /usr/src/nats.go
|
|
RUN go mod tidy -modfile go_test.mod
|
|
RUN go test -run TestNone -modfile go_test.mod -tags compat ./test/...
|
|
ENV NATS_URL=localhost:4222
|
|
ENTRYPOINT ["go", "test", "-v", "-modfile", "go_test.mod", "-tags", "compat", "./test/...", "-count", "1", "-parallel", "10", "-run"]
|