mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-08-22 16:36:12 +00:00
Rework ginkgo
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
parent
ae0e1ba0b3
commit
bcc9b37749
6
.github/workflows/e2e-tests.yml
vendored
6
.github/workflows/e2e-tests.yml
vendored
@ -49,12 +49,6 @@ jobs:
|
|||||||
earthly -P +iso
|
earthly -P +iso
|
||||||
export ISO=$PWD/build/challenger.iso
|
export ISO=$PWD/build/challenger.iso
|
||||||
|
|
||||||
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
|
|
||||||
go get github.com/onsi/gomega/...
|
|
||||||
go get github.com/onsi/ginkgo/v2/ginkgo/internal@v2.7.1
|
|
||||||
go get github.com/onsi/ginkgo/v2/ginkgo/generators@v2.7.1
|
|
||||||
go get github.com/onsi/ginkgo/v2/ginkgo/labels@v2.7.1
|
|
||||||
|
|
||||||
# Configure earthly to use the docker mirror in CI
|
# Configure earthly to use the docker mirror in CI
|
||||||
# https://docs.earthly.dev/ci-integration/pull-through-cache#configuring-earthly-to-use-the-cache
|
# https://docs.earthly.dev/ci-integration/pull-through-cache#configuring-earthly-to-use-the-cache
|
||||||
cat << EOF > ~/.earthly/config.yml
|
cat << EOF > ~/.earthly/config.yml
|
||||||
|
14
Earthfile
14
Earthfile
@ -50,14 +50,8 @@ test:
|
|||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download && go mod verify
|
RUN go mod download && go mod verify
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
COPY . /work
|
COPY . /work
|
||||||
RUN PATH=$PATH:$GOPATH/bin ginkgo run --covermode=atomic --coverprofile=coverage.out -p -r pkg/challenger cmd/discovery/client
|
RUN go run github.com/onsi/ginkgo/v2/ginkgo run --covermode=atomic --coverprofile=coverage.out -p -r pkg/challenger cmd/discovery/client
|
||||||
SAVE ARTIFACT coverage.out AS LOCAL coverage.out
|
SAVE ARTIFACT coverage.out AS LOCAL coverage.out
|
||||||
|
|
||||||
# Generic targets
|
# Generic targets
|
||||||
@ -87,12 +81,6 @@ e2e-tests-image:
|
|||||||
COPY . /test
|
COPY . /test
|
||||||
WORKDIR /test
|
WORKDIR /test
|
||||||
|
|
||||||
RUN go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
|
|
||||||
RUN go get github.com/onsi/gomega/...
|
|
||||||
RUN go get github.com/onsi/ginkgo/v2/ginkgo/internal@v2.7.1
|
|
||||||
RUN go get github.com/onsi/ginkgo/v2/ginkgo/generators@v2.7.1
|
|
||||||
RUN go get github.com/onsi/ginkgo/v2/ginkgo/labels@v2.7.1
|
|
||||||
|
|
||||||
IF [ -e /test/build/kairos.iso ]
|
IF [ -e /test/build/kairos.iso ]
|
||||||
ENV ISO=/test/build/kairos.iso
|
ENV ISO=/test/build/kairos.iso
|
||||||
ELSE
|
ELSE
|
||||||
|
@ -59,4 +59,4 @@ kubectl apply -k "$SCRIPT_DIR/../tests/assets/"
|
|||||||
# https://stackoverflow.com/a/6752280
|
# https://stackoverflow.com/a/6752280
|
||||||
export KMS_ADDRESS="10.0.2.2.challenger.sslip.io"
|
export KMS_ADDRESS="10.0.2.2.challenger.sslip.io"
|
||||||
|
|
||||||
PATH=$PATH:$GOPATH/bin ginkgo -v --nodes $GINKGO_NODES --label-filter $LABEL --fail-fast -r ./tests/
|
go run github.com/onsi/ginkgo/v2/ginkgo -v --nodes $GINKGO_NODES --label-filter $LABEL --fail-fast -r ./tests/
|
||||||
|
Loading…
Reference in New Issue
Block a user