From 342cdda3a05b144fddffacaf91aac4431d982e45 Mon Sep 17 00:00:00 2001 From: Piotr Piotrowski Date: Tue, 22 Aug 2023 13:51:02 +0200 Subject: [PATCH] Add dockerfile for compatibility tests Signed-off-by: Piotr Piotrowski --- test/compat_test.go | 3 +++ test/configs/docker/Dockerfile | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 test/configs/docker/Dockerfile diff --git a/test/compat_test.go b/test/compat_test.go index 98d6f5362..9930f7dec 100644 --- a/test/compat_test.go +++ b/test/compat_test.go @@ -1,3 +1,6 @@ +//go:build compat +// +build compat + package test import ( diff --git a/test/configs/docker/Dockerfile b/test/configs/docker/Dockerfile new file mode 100644 index 000000000..bc83110d3 --- /dev/null +++ b/test/configs/docker/Dockerfile @@ -0,0 +1,5 @@ +FROM golang:1.20 +WORKDIR /usr/src/nats.go +COPY . /usr/src/nats.go +ENV NATS_URL=localhost:4222 +CMD ["go", "test", "-v", "-run", "TestCompatibility", "-modfile", "go_test.mod", "-tags", "compat", "./test/..."] \ No newline at end of file