From c95706c822144a5d5e3e332f05671f04c5379c78 Mon Sep 17 00:00:00 2001 From: Nesma Badr Date: Tue, 16 Jan 2024 10:59:06 +0100 Subject: [PATCH] chore: Cleanup pre prow jobs (#1912) * Add pull-cli-docs * Add pull-cli-unit-test * Add pull-cli-build * new lines * Empty-Commit --- .github/workflows/pull-cli-build.yaml | 21 +++++++++++++++++++++ .github/workflows/pull-cli-docs.yaml | 21 +++++++++++++++++++++ .github/workflows/pull-cli-unit-test.yaml | 21 +++++++++++++++++++++ prow/pre-cli-e2e.sh | 7 ------- 4 files changed, 63 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/pull-cli-build.yaml create mode 100644 .github/workflows/pull-cli-docs.yaml 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-build.yaml b/.github/workflows/pull-cli-build.yaml new file mode 100644 index 000000000..23f5c73e0 --- /dev/null +++ b/.github/workflows/pull-cli-build.yaml @@ -0,0 +1,21 @@ +name: pull-cli-build +on: + pull_request: + branches: + - main + - 'release-**' + workflow_dispatch: +jobs: + cli-build: + name: build + 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 CLI Build + run: make build diff --git a/.github/workflows/pull-cli-docs.yaml b/.github/workflows/pull-cli-docs.yaml new file mode 100644 index 000000000..24987db9d --- /dev/null +++ b/.github/workflows/pull-cli-docs.yaml @@ -0,0 +1,21 @@ +name: pull-cli-docs +on: + pull_request: + branches: + - main + - 'release-**' + workflow_dispatch: +jobs: + validate-docs: + name: docs validation + 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 Docs Validation + run: make validate diff --git a/.github/workflows/pull-cli-unit-test.yaml b/.github/workflows/pull-cli-unit-test.yaml new file mode 100644 index 000000000..2afe782b6 --- /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: 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 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