|
11 | 11 | # limitations under the License.
|
12 | 12 | #
|
13 | 13 |
|
14 |
| -name: dapr-longhaul-weekly |
| 14 | +name: deploy-longhaul-weekly |
15 | 15 |
|
16 | 16 | on:
|
17 | 17 | schedule:
|
|
20 | 20 |
|
21 | 21 | jobs:
|
22 | 22 | test-nightly:
|
23 |
| - name: update dapr runtime |
| 23 | + name: update dapr runtime with the head of master and run longhaul tests |
24 | 24 | runs-on: ubuntu-latest
|
25 | 25 | env:
|
26 | 26 | KUBECTLVER: v1.19.3
|
|
38 | 38 | DAPR_NAMESPACE: dapr-system
|
39 | 39 | DAPR_MONITORING: dapr-monitoring
|
40 | 40 | DAPR_COMPONENTS: dapr-components
|
41 |
| - TEST_CLUSTER: daprnightly |
42 |
| - TEST_RESOURCE_GROUP: dapr-test |
| 41 | + TEST_CLUSTER: aks-longhaul-weekly |
| 42 | + TEST_RESOURCE_GROUP: aks-longhaul-weekly |
43 | 43 | DAPR_CHECKOUT_REPO: dapr/dapr
|
44 | 44 | DAPR_CHECKOUT_REF: refs/heads/master
|
45 | 45 | APP_NAMESPACE: longhaul-test
|
@@ -132,47 +132,10 @@ jobs:
|
132 | 132 | - name: Create component namespace, if it doesn't exist
|
133 | 133 | run: |
|
134 | 134 | kubectl get namespace | grep ${{ env.DAPR_COMPONENTS }} || kubectl create namespace ${{ env.DAPR_COMPONENTS }}
|
135 |
| - - name: Check for redis |
136 |
| - if: env.TEST_CLUSTER != '' |
137 |
| - run: | |
138 |
| - helm list -n ${{ env.DAPR_COMPONENTS }} | grep dapr-redis && echo "REDIS_PRESENT=true" >> $GITHUB_ENV || echo "Redis not present." |
139 |
| - - name: Start redis if not present |
140 |
| - if: env.REDIS_PRESENT != 'true' |
141 |
| - run: | |
142 |
| - helm repo add bitnami https://charts.bitnami.com/bitnami |
143 |
| - helm repo update |
144 |
| - helm install dapr-redis bitnami/redis --namespace ${{ env.DAPR_COMPONENTS }} --wait |
145 |
| - kubectl delete secret dapr-redis -n ${{ env.APP_NAMESPACE }} --ignore-not-found |
146 |
| - kubectl get secret dapr-redis -n ${{ env.DAPR_COMPONENTS }} -o yaml | grep -v 'namespace:' | kubectl apply -f - -n ${{ env.APP_NAMESPACE }} |
147 |
| - - name: Check for kafka |
148 |
| - if: env.TEST_CLUSTER != '' |
149 |
| - run: | |
150 |
| - helm list -n ${{ env.DAPR_COMPONENTS }} | grep dapr-kafka && echo "KAFKA_PRESENT=true" >> $GITHUB_ENV || echo "Kafka not present." |
151 |
| - - name: Start kafka if not present |
152 |
| - if: env.KAFKA_PRESENT != 'true' |
153 |
| - run: | |
154 |
| - helm repo add bitnami https://charts.bitnami.com/bitnami |
155 |
| - helm repo update |
156 |
| - helm install dapr-kafka bitnami/kafka --wait --namespace ${{ env.DAPR_COMPONENTS }} |
157 | 135 | # Deploy all longhaul tests/components
|
158 | 136 | - name: Create app namespace, if it doesn't exist
|
159 | 137 | run: |
|
160 | 138 | kubectl get namespace | grep ${{ env.APP_NAMESPACE }} || kubectl create namespace ${{ env.APP_NAMESPACE }}
|
161 |
| - - name: Apply secret access roles # Required to access k8s in the non-standard namespace. |
162 |
| - if: env.TEST_CLUSTER != '' |
163 |
| - working-directory: ./longhaul |
164 |
| - run: | |
165 |
| - kubectl apply -f ./longhaul-test/secret-access-role.yml -n ${{ env.APP_NAMESPACE }} |
166 |
| - kubectl apply -f ./longhaul-test/secret-access-role-binding.yml -n ${{ env.APP_NAMESPACE }} |
167 |
| - - name: Deploy components |
168 |
| - if: env.TEST_CLUSTER != '' |
169 |
| - working-directory: ./longhaul |
170 |
| - run: | |
171 |
| - kubectl apply -f ./longhaul-test/azure-nightly-keyvault.yml -n ${{ env.APP_NAMESPACE }} |
172 |
| - kubectl apply -f ./longhaul-test/azure-service-bus-pubsub.yml -n ${{ env.APP_NAMESPACE }} |
173 |
| - kubectl apply -f ./longhaul-test/azure-storagequeue-binding.yaml -n ${{ env.APP_NAMESPACE }} |
174 |
| - kubectl apply -f ./longhaul-test/redis-pubsub.yaml -n ${{ env.APP_NAMESPACE }} |
175 |
| - kubectl apply -f ./longhaul-test/azure-cosmosdb-statestore.yaml -n ${{ env.APP_NAMESPACE }} |
176 | 139 | - name: Deploy test applications
|
177 | 140 | if: env.TEST_CLUSTER != ''
|
178 | 141 | working-directory: ./longhaul
|
|
0 commit comments