1414
1515jobs :
1616 test :
17+ permissions :
18+ contents : ' read'
19+ id-token : ' write'
20+
1721 name : Run Testkube
1822 runs-on : ubuntu-latest
23+
1924 steps :
2025 - name : Checkout
2126 uses : actions/checkout@v2
@@ -27,29 +32,28 @@ jobs:
2732 git config user.name "$GITHUB_ACTOR"
2833 git config user.email "[email protected] " 2934
30- # Setup gcloud CLI
31- - uses : google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
35+ # Authenticate with Google Cloud so we can deploy to the cluster
36+ - id : ' auth'
37+ uses : ' google-github-actions/auth@v2'
3238 with :
33- service_account_key : ${{ secrets.GKE_SA_KEY }}
3439 project_id : ${{ secrets.GKE_PROJECT }}
35-
40+ credentials_json : ' ${{ secrets.GKE_SA_KEY }}'
41+
42+ - name : ' Set up Cloud SDK'
43+ uses : ' google-github-actions/setup-gcloud@v2'
44+
3645 # Configure Docker to use the gcloud command-line tool as a credential
3746 # helper for authentication
3847 - run : |-
3948 gcloud --quiet auth configure-docker
4049
4150 # Get the GKE credentials so we can deploy to the cluster
42- - uses : google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
51+ - uses : ' google-github-actions/get-gke-credentials@v2 '
4352 with :
4453 cluster_name : ${{ env.GKE_CLUSTER_NAME }}
4554 location : ${{ env.GKE_ZONE }}
46- credentials : ${{ secrets.GKE_SA_KEY }}
4755
4856 # Run Testkube test on a GKE cluster
49- - name : Run test
50- id : run_test
51- uses : kubeshop/testkube-docker-action@v1
52- with :
53- command : run
54- resource : testsuite
55- parameters : hands-on-testkube-gitops
57+ - uses : kubeshop/setup-testkube@v1
58+ - run : |
59+ testkube run testworkflow gradle-test -f
0 commit comments