From b8533a52efd26e7195472b086c3b73994214e8cc Mon Sep 17 00:00:00 2001 From: janiskemper Date: Tue, 19 Dec 2023 12:55:53 +0530 Subject: [PATCH 1/2] :sparkles: Add Github integration tests to CI Adding integration tests to CI --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02a31b8d8..2199a7123 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,3 +56,12 @@ jobs: env: GO111MODULE: "on" run: make test-unit + + - name: Running integration tests github + env: + GIT_PROVIDER: github + GIT_ORG_NAME: SovereignCloudStack + GIT_REPOSITORY_NAME: cluster-stacks + GO111MODULE: "on" + GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} + run: make test-integration-github From 0d91472f2898266b46c7edc43e0815866a78c974 Mon Sep 17 00:00:00 2001 From: janiskemper Date: Tue, 19 Dec 2023 13:01:32 +0530 Subject: [PATCH 2/2] fix coverage folder --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dec253006..7eb2eb774 100644 --- a/Makefile +++ b/Makefile @@ -328,8 +328,8 @@ test-unit: $(SETUP_ENVTEST) $(GOTESTSUM) $(HELM) ## Run unit .PHONY: test-integration-github test-integration-github: $(SETUP_ENVTEST) $(GOTESTSUM) @mkdir -p $(shell pwd)/.coverage - KUBEBUILDER_ASSETS="$(KUBEBUILDER_ASSETS)" $(GOTESTSUM) --junitfile=../.coverage/junit.xml --format testname -- -mod=vendor \ - -covermode=atomic -coverprofile=../.coverage/cover.out -p=1 ./internal/test/integration/github/... + KUBEBUILDER_ASSETS="$(KUBEBUILDER_ASSETS)" $(GOTESTSUM) --junitfile=.coverage/junit.xml --format testname -- -mod=vendor \ + -covermode=atomic -coverprofile=.coverage/cover.out -p=1 ./internal/test/integration/github/... ##@ Verify ##########