summaryrefslogtreecommitdiff
path: root/ci/docker/go-test.docker
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-03-24 14:49:46 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-03-24 14:49:46 +0100
commit9f44f46a4cbf6857560acf567e2c0e93bd39012d (patch)
tree2fa74e3f2dbf712497daca90a21f6f54be62d485 /ci/docker/go-test.docker
parent920aa02f020c348ddfc3dd1c31684fcc5d386897 (diff)
Add CI docker images for testing with the server
Diffstat (limited to 'ci/docker/go-test.docker')
-rw-r--r--ci/docker/go-test.docker11
1 files changed, 11 insertions, 0 deletions
diff --git a/ci/docker/go-test.docker b/ci/docker/go-test.docker
new file mode 100644
index 0000000..d576dd7
--- /dev/null
+++ b/ci/docker/go-test.docker
@@ -0,0 +1,11 @@
+FROM golang:1.18
+
+WORKDIR /eduvpn/go
+
+# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
+COPY ./go.mod go.sum ./
+RUN go mod download && go mod verify
+
+COPY ./src ./src
+
+CMD ["go", "test", "github.com/jwijenbergh/eduvpn-common/src"]