test/configs/docker/Dockerfile
raw| 1 | FROM golang:1.22 |
| 2 | WORKDIR /usr/src/nats.go |
| 3 | COPY . /usr/src/nats.go |
| 4 | RUN go mod tidy -modfile go_test.mod |
| 5 | RUN go test -run TestNone -modfile go_test.mod -tags compat ./test/... |
| 6 | ENV NATS_URL=localhost:4222 |
| 7 | ENTRYPOINT ["go", "test", "-v", "-modfile", "go_test.mod", "-tags", "compat", "./test/...", "-count", "1", "-parallel", "10", "-run"] |