@@ -2,13 +2,13 @@ name: ChaosOperator-E2E-pipeline
22on :
33 issue_comment :
44 types : [created]
5-
5+
66jobs :
77 Tests :
88 if : contains(github.event.comment.html_url, '/pull/') && startsWith(github.event.comment.body, '/run-e2e')
99 runs-on : ubuntu-latest
1010 steps :
11-
11+
1212 - name : Notification for e2e Start
1313 uses : peter-evans/create-or-update-comment@v1
1414 with :
@@ -19,13 +19,13 @@ jobs:
1919
2020 - uses : actions/setup-go@v2
2121 with :
22- go-version : 1.20.0
23-
24- - name : Setting up GOPATH
22+ go-version : 1.22
23+
24+ - name : Setting up GOPATH
2525 run : |
2626 echo ::set-env name=GOPATH::${GITHUB_WORKSPACE}/go
2727 env :
28- ACTIONS_ALLOW_UNSECURE_COMMANDS : true
28+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
2929
3030 # Using the last commit id of pull request
3131@@ -36,20 +36,20 @@ jobs:
3636 pull_number : ${{ github.event.issue.number }}
3737 env :
3838 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39-
39+
4040 - name : set commit to output
4141 id : getcommit
4242 run : |
4343 prsha=$(echo $response | jq '.[-1].sha' | tr -d '"')
44- echo "::set-output name=sha::$prsha"
45- env :
44+ echo "::set-output name=sha::$prsha"
45+ env :
4646 response : ${{ steps.get_PR_commits.outputs.data }}
47-
47+
4848 - uses : actions/checkout@v2
4949 with :
5050 ref : ${{steps.getcommit.outputs.sha}}
5151 path : go/src/github.com/litmuschaos/chaos-operator
52-
52+
5353 - name : Build docker image
5454 run : |
5555 export PATH=$PATH:$(go env GOPATH)/bin
62626363 with :
6464 version : " v0.22.0"
65-
65+
6666 - name : Configuring and testing kind Installation
6767 run : |
6868 kubectl cluster-info
@@ -88,16 +88,16 @@ jobs:
8888 env :
8989 OPERATOR_IMAGE : litmuschaos/chaos-operator:ci
9090 IMAGE_PULL_POLICY : IfNotPresent
91- KUBECONFIG : /home/runner/.kube/config
92-
91+ KUBECONFIG : /home/runner/.kube/config
92+
9393 - name : Run Admin mode test
9494 if : startsWith(github.event.comment.body, '/run-e2e-admin-mode') || startsWith(github.event.comment.body, '/run-e2e-all')
9595 run : |
9696 export PATH=$PATH:$(go env GOPATH)/bin
9797 cd ${GOPATH}/src/github.com/litmuschaos/litmus-e2e
9898 go test components/operator/admin-mode_test.go -v -count=1
9999 env :
100- KUBECONFIG : /home/runner/.kube/config
100+ KUBECONFIG : /home/runner/.kube/config
101101
102102 - name : Run Reconcile Resiliency test
103103 if : startsWith(github.event.comment.body, '/run-e2e-reconcile-resiliency') || startsWith(github.event.comment.body, '/run-e2e-all')
@@ -106,7 +106,7 @@ jobs:
106106 cd ${GOPATH}/src/github.com/litmuschaos/litmus-e2e
107107 go test components/operator/reconcile-resiliency_test.go -v -count=1
108108 env :
109- KUBECONFIG : /home/runner/.kube/config
109+ KUBECONFIG : /home/runner/.kube/config
110110
111111 - name : Check the test run
112112 if : |
@@ -115,7 +115,7 @@ jobs:
115115 run : |
116116 echo ::set-env name=TEST_RUN::true
117117 env :
118- ACTIONS_ALLOW_UNSECURE_COMMANDS : true
118+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
119119
120120 - name : Check for all the jobs are succeeded
121121 if : ${{ success() && env.TEST_RUN == 'true' }}
@@ -125,27 +125,27 @@ jobs:
125125 body : |
126126 **Test Result:** All tests are passed
127127 **Logs:** [${{ env.RUN_ID }}](https://github.com/litmuschaos/chaos-operator/actions/runs/${{ env.RUN_ID }})
128-
129- reactions : hooray
130- env :
128+
129+ reactions : hooray
130+ env :
131131 RUN_ID : ${{ github.run_id }}
132-
132+
133133 - name : Check for any job failed
134134 if : ${{ failure() }}
135135 uses : peter-evans/create-or-update-comment@v1
136136 with :
137137 comment-id : " ${{ github.event.comment.id }}"
138138 body : |
139139 **Test Failed:** Some tests are failed please check
140- **Logs:** [${{ env.RUN_ID }}](https://github.com/litmuschaos/chaos-operator/actions/runs/${{ env.RUN_ID }})
140+ **Logs:** [${{ env.RUN_ID }}](https://github.com/litmuschaos/chaos-operator/actions/runs/${{ env.RUN_ID }})
141141 reactions : confused
142- env :
142+ env :
143143 RUN_ID : ${{ github.run_id }}
144-
144+
145145 - name : Deleting KinD cluster
146146 if : ${{ always() }}
147147 run : kind delete cluster
148-
148+
149149 - name : Check if any test ran or not
150150 if : env.TEST_RUN != 'true'
151151 uses : peter-evans/create-or-update-comment@v1
@@ -155,5 +155,5 @@ jobs:
155155 **Test Result:** No test found try /run-e2e-all
156156 **Logs:** [${{ env.RUN_ID }}](https://github.com/litmuschaos/chaos-operator/actions/runs/${{ env.RUN_ID }})
157157 reactions : eyes
158- env :
158+ env :
159159 RUN_ID : ${{ github.run_id }}
0 commit comments