7878 npm install
7979 npm run build
8080
81- - run : sed -i "s/test-basic-yaml/${{ steps.service.outputs.service }}/" ./tests/unit/service.basic.yaml
81+ - name : Set service name in metadata YAML
82+ run : sed -i "s/test-basic-yaml/${{ steps.service.outputs.service }}/" ./tests/unit/service.basic.yaml
8283
8384 - name : Deploy Service
8485 id : deploy
@@ -114,7 +115,8 @@ jobs:
114115 npm install
115116 npm run build
116117
117- - run : |-
118+ - name : Set service name in metadata YAML
119+ run : |-
118120 sed -i "s/run-full-yaml/${{ steps.service.outputs.service }}/" ./tests/unit/service.full.yaml
119121
120122 - name : Create service from metadata yaml
@@ -134,8 +136,9 @@ jobs:
134136 run : npm run e2e-tests
135137 env :
136138 URL : ${{ steps.deploy_1.outputs.url }}
139+ SERVICE : ${{ steps.service.outputs.service }}
137140 PARAMS : " {\" cpu\" : 2,\" memory\" : \" 1Gi\" , \" containerConcurrency\" : 20}"
138- ANNOTATIONS : " {\" run.googleapis.com/cloudsql-instances\" : \" 1:2:3 \" }"
141+ ANNOTATIONS : " {\" run.googleapis.com/cloudsql-instances\" : \" my-test-instnace \" }"
139142 LABELS : " {\" test_label\" : \" test_value\" }"
140143
141144 - name : Update service with new image
@@ -152,7 +155,7 @@ jobs:
152155 URL : ${{ steps.deploy_2.outputs.url }}
153156 SERVICE : ${{ steps.service.outputs.service }}
154157 PARAMS : " {\" cpu\" : 2,\" memory\" : \" 1Gi\" , \" containerConcurrency\" : 20}"
155- ANNOTATIONS : " {\" run.googleapis.com/cloudsql-instances\" : \" 1:2:3 \" }"
158+ ANNOTATIONS : " {\" run.googleapis.com/cloudsql-instances\" : \" my-test-instnace \" }"
156159 LABELS : " {\" test_label\" : \" test_value\" }"
157160 COUNT : 2
158161
@@ -192,9 +195,11 @@ jobs:
192195 run : npm run e2e-tests
193196 env :
194197 URL : ${{ steps.deploy_1.outputs.url }}
198+ SERVICE : ${{ steps.service.outputs.service }}
195199 REVISION : ${{ steps.service.outputs.service }}-001
196200
197- - run : |-
201+ - name : Update service revision name
202+ run : |-
198203 sed -i "s/-001/-002/" ./tests/unit/service.namedrevision.yaml
199204
200205 - name : Update service with new revision name
0 commit comments