From 5d5a539410fd4b6d45523807e5222065b6e6a199 Mon Sep 17 00:00:00 2001 From: "Badr, Nesma" Date: Mon, 15 Jan 2024 12:06:11 +0100 Subject: [PATCH] Add pull-cli-unit-test --- .github/workflows/pull-cli-unit-test.yaml | 21 +++++++++++++++++++++ prow/pre-cli-e2e.sh | 7 ------- 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/pull-cli-unit-test.yaml delete mode 100755 prow/pre-cli-e2e.sh diff --git a/.github/workflows/pull-cli-unit-test.yaml b/.github/workflows/pull-cli-unit-test.yaml new file mode 100644 index 000000000..ea6da8d08 --- /dev/null +++ b/.github/workflows/pull-cli-unit-test.yaml @@ -0,0 +1,21 @@ +name: pull-cli-unit-test +on: + pull_request: + branches: + - main + - 'release-**' + workflow_dispatch: +jobs: + unit-tests: + name: run unit tests + runs-on: ubuntu-latest + steps: + - name: Checkout Kyma CLI + uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: 'go.mod' + cache-dependency-path: 'go.sum' + - name: Run Unit Tests + run: make test \ No newline at end of file diff --git a/prow/pre-cli-e2e.sh b/prow/pre-cli-e2e.sh deleted file mode 100755 index eff99a325..000000000 --- a/prow/pre-cli-e2e.sh +++ /dev/null @@ -1,7 +0,0 @@ -set -e -make resolve -make build-linux -cp ./bin/kyma-linux /usr/local/bin/kyma -kyma provision k3d --ci -kyma deploy --ci -kyma undeploy --ci --timeout=10m0s