mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-05-12 02:18:40 +00:00
art: Add +test target
This commit is contained in:
parent
a7cf9f9a8f
commit
68add8c3aa
13
Earthfile
13
Earthfile
@ -37,6 +37,19 @@ go-deps:
|
||||
SAVE ARTIFACT go.mod AS LOCAL go.mod
|
||||
SAVE ARTIFACT go.sum AS LOCAL go.sum
|
||||
|
||||
test:
|
||||
FROM +go-deps
|
||||
WORKDIR /build
|
||||
RUN go get github.com/onsi/gomega/...
|
||||
RUN go get github.com/onsi/ginkgo/v2/ginkgo/internal@v2.1.4
|
||||
RUN go get github.com/onsi/ginkgo/v2/ginkgo/generators@v2.1.4
|
||||
RUN go get github.com/onsi/ginkgo/v2/ginkgo/labels@v2.1.4
|
||||
RUN go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
|
||||
RUN curl https://luet.io/install.sh | sh
|
||||
COPY . .
|
||||
RUN ginkgo run --fail-fast --slow-spec-threshold 30s --covermode=atomic --coverprofile=coverage.out -p -r ./pkg ./internal ./cmd
|
||||
SAVE ARTIFACT coverage.out AS LOCAL coverage.out
|
||||
|
||||
BUILD_GOLANG:
|
||||
COMMAND
|
||||
WORKDIR /build
|
||||
|
Loading…
Reference in New Issue
Block a user