From 4f772ffb05706e16be5e4cc567ab1d15b83efdf8 Mon Sep 17 00:00:00 2001 From: mudler Date: Wed, 18 Jan 2023 15:46:10 +0100 Subject: [PATCH] Add Earthfile --- Earthfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Earthfile diff --git a/Earthfile b/Earthfile new file mode 100644 index 0000000..e6cdec5 --- /dev/null +++ b/Earthfile @@ -0,0 +1,14 @@ +VERSION 0.6 +FROM alpine + +test: + FROM opensuse/tumbleweed + RUN zypper in -y go openssl-devel + WORKDIR /build + ENV GOPATH=/go + # Cache layer for modules + COPY go.mod go.sum ./ + RUN go mod download && go mod verify + RUN go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo + COPY . . + RUN PATH=$PATH:$GOPATH/bin ginkgo -v ./...