File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 31
31
32
32
- name : Wait for Kubernetes resources to be ready
33
33
run : |
34
- kubectl wait --for=condition=available --timeout=600s deployment --namespace xcermak5 --all
34
+ kubectl wait --for=condition=available --timeout=1200s deployment --namespace xcermak5 --all
35
35
kubectl get all --namespace xcermak5
36
36
37
37
- name : Run Integration Tests
Original file line number Diff line number Diff line change
1
+ name : Run Integration Tests on Existing Deployment
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ run-integration-tests :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - name : Checkout code
11
+ uses : actions/checkout@v2
12
+
13
+ - name : Set up kubectl
14
+ uses : azure/setup-kubectl@v1
15
+ with :
16
+ version : v1.19.7
17
+
18
+ - name : Configure kubeconfig
19
+ run : |
20
+ # Assuming you have the kubeconfig file as a secret in GitHub Actions
21
+ echo "${{ secrets.KUBECONFIG }}" > $HOME/.kube/config
22
+ kubectl config set-context --current --namespace=xcermak5
23
+
24
+ - name : Run Integration Tests
25
+ run : |
26
+ kubectl get pods --namespace xcermak5
27
+ kubectl get services --namespace xcermak5
28
+ # POD_NAME=$(kubectl get pods --namespace xcermak5 -l app=mychart -o jsonpath="{.items[0].metadata.name}")
29
+ # kubectl exec --namespace xcermak5 $POD_NAME -- curl -f http://localhost:8080/healthz
You can’t perform that action at this time.
0 commit comments