Skip to content

Commit

Permalink
Add dockerfile for compatibility tests
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <[email protected]>
  • Loading branch information
piotrpio committed Aug 23, 2023
1 parent 3bf15e1 commit 873be94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/compat_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build compat
// +build compat

package test

import (
Expand Down
6 changes: 6 additions & 0 deletions test/configs/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM golang:1.20
WORKDIR /usr/src/nats.go
COPY . /usr/src/nats.go
RUN go mod tidy -modfile go_test.mod
ENV NATS_URL=localhost:4222
CMD ["go", "test", "-v", "-run", "TestCompatibility", "-modfile", "go_test.mod", "-tags", "compat", "./test/..."]

0 comments on commit 873be94

Please sign in to comment.