Add Earthfile

This commit is contained in:
mudler 2023-01-18 15:46:10 +01:00
parent f0fe82f348
commit 4f772ffb05

14
Earthfile Normal file
View File

@ -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 ./...