1818 # see https://github.com/devstream-io/devstream/pull/414 for more info
1919 GITHUB_TOKEN : ${{ secrets.E2E_GITHUB_TOKEN }}
2020 DOCKERHUB_USERNAME : ${{ secrets.E2E_DOCKERHUB_USERNAME }}
21+ # for github actions
2122 DOCKERHUB_TOKEN : ${{ secrets.E2E_DOCKERHUB_TOKEN }}
22- TRELLO_API_KEY : ${{ secrets.E2E_TRELLO_API_KEY }}
23- TRELLO_TOKEN : ${{ secrets.E2E_TRELLO_TOKEN }}
23+ # for apps
24+ IMAGE_REPO_PASSWORD : ${{ secrets.E2E_DOCKERHUB_TOKEN }}
2425
2526concurrency :
2627 group : ${{ github.workflow }}
3940 runs-on : [self-hosted, linux, X64]
4041 name : e2e-test-${{ matrix.os }}
4142 steps :
42- - run : echo "🐧 This job is now running on a ${{ runner.os }}-${{ runner.arch }} server hosted by GitHub!"
4343 - name : Checkout
4444 uses : actions/checkout@v3
4545 - name : Setup Golang env
@@ -65,24 +65,33 @@ jobs:
6565 - name : Configure EKS credentials
6666 run : |
6767 aws eks update-kubeconfig --region ap-southeast-1 --name dtm-test
68- - name : copy config files
69- run : cp ./test/e2e/yaml/e2e-*.yaml ./
70- - name : apply git-ops
71- run : ./dtm apply -f e2e-config.yaml -y
72- - name : apply twice git-ops
73- run : ./dtm apply -f e2e-config.yaml -y
74- - name : install kubectl
68+ - name : Install kubectl
7569 run : |
7670 curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/linux/amd64/kubectl
7771 chmod +x ./kubectl
7872 sudo mv ./kubectl /usr/local/bin/kubectl
79- - name : check if pod is ready
73+ - name : copy config files
74+ run : cp ./test/e2e/yaml/e2e-*.yaml ./
75+ - name : test 1 - apply git-ops (tools only)
76+ run : ./dtm apply -f e2e-tools.yaml -y
77+ - name : test 1 - apply git-ops (tools only) again
78+ run : ./dtm apply -f e2e-tools.yaml -y
79+ - name : test 1 - check if pod is ready
80+ run : while [[ $(kubectl get pods -l app=dtme2epython -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done
81+ timeout-minutes : 10
82+ - name : test 1 - verify
83+ run : ./dtm verify -f e2e-tools.yaml
84+ - name : test 1 - clean
85+ run : ./dtm delete -f e2e-tools.yaml -y
86+ - name : test 2 - apply (apps)
87+ run : ./dtm apply -f e2e-apps.yaml -y
88+ - name : test 2 - apply (apps) again
89+ run : ./dtm apply -f e2e-apps.yaml -y
90+ - name : test 2 - check if pod is ready
8091 run : while [[ $(kubectl get pods -l app=dtm-e2e-go -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done
8192 timeout-minutes : 10
82- - name : verify
83- run : ./dtm verify -f e2e-config.yaml
84- - name : clean
85- run : ./dtm delete -f e2e-config.yaml -y
93+ - name : test 2 - clean
94+ run : ./dtm delete -f e2e-apps.yaml -y
8695 - name : test e2e success or not
8796 if : failure()
8897 run : |
0 commit comments