Runs a code test on a GKE cluster and monitors the job until completion. This action was built and tested only for testing jobs that run a single pod.
A credentials file containing for the service account to be used to interact with the GKE cluster.
Cluster name of the GKE instance.
Project which contains the GKE instance.
Path and name of the Kubernetes manifest .yml file. This file should describe the testing job to be run. This file must run a kubernets job and only the logs of the first pod will be monitored. Defaults to 'ci-test.yml'
The Kubernetes namespace on which the test job will run. Defaults to 'ci-test'
- name: Run test job
uses: colpal/actions-gke-ci-test
with:
GKE_SERVICE_ACCOUNT: ${{ secrets.GCR_GCP_CREDENTIALS }}
GKE_PROJECT: 'cp-advancedtech-sandbox'
GKE_CLUSTER_NAME: cp-advtech-cluster
MANIFEST_FILE: 'testing/ci-test.yml'