kubeshop / testkube

☸️ Kubernetes-native testing framework for test execution and orchestration
https://testkube.io
Other
1.36k stars 132 forks source link

Create GitHub Action to run Testkube command on a GKE cluster #1768

Closed vLia closed 2 years ago

vLia commented 2 years ago

Is your feature request related to a problem? Please describe. After the presentation on the kubepug executor, @olensmar brought up that there should be a GitHub action to run Testkube commands directly on GKE. The GitHub workflow that prompted this idea is https://github.com/vLia/testkube-tests/blob/main/.github/workflows/kubepug-test.yaml

Describe the solution you'd like There should be a GitHub action to run a Testkube command on a GKE cluster, example:

      - name: Testkube test
        uses: actions/testkube-gke@v1
        with:
          cluster_name: ${{ secrets.GKE_CLUSTER_NAME_DEV }}
          location: ${{ secrets.GKE_ZONE_DEV }}
          credentials: ${{ secrets.GKE_SA_KEY }}
          project_id: ${{ secrets.GKE_PROJECT }}
          command: "kubectl testkube run test test-a"

The action would perform all necessary installs/connections in one go - instead of requiring separate actions for each corresponding steps

vLia commented 2 years ago

Blocked by https://github.com/kubeshop/testkube/issues/1421 - we can likely build on this one as it will be a more generic GitHub Action

vLia commented 2 years ago

Repo: https://github.com/kubeshop/testkube-gke-action Published action: https://github.com/marketplace/actions/testkube-gke-cli Here it is in use: https://github.com/vLia/testkube-tests/blob/main/.github/workflows/testkube-gke-test.yaml Here it is running: https://github.com/vLia/testkube-tests/runs/7790883231?check_suite_focus=true