78
78
npm install
79
79
npm run build
80
80
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
82
83
83
84
- name : Deploy Service
84
85
id : deploy
@@ -114,7 +115,8 @@ jobs:
114
115
npm install
115
116
npm run build
116
117
117
- - run : |-
118
+ - name : Set service name in metadata YAML
119
+ run : |-
118
120
sed -i "s/run-full-yaml/${{ steps.service.outputs.service }}/" ./tests/unit/service.full.yaml
119
121
120
122
- name : Create service from metadata yaml
@@ -134,8 +136,9 @@ jobs:
134
136
run : npm run e2e-tests
135
137
env :
136
138
URL : ${{ steps.deploy_1.outputs.url }}
139
+ SERVICE : ${{ steps.service.outputs.service }}
137
140
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 \" }"
139
142
LABELS : " {\" test_label\" : \" test_value\" }"
140
143
141
144
- name : Update service with new image
@@ -152,7 +155,7 @@ jobs:
152
155
URL : ${{ steps.deploy_2.outputs.url }}
153
156
SERVICE : ${{ steps.service.outputs.service }}
154
157
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 \" }"
156
159
LABELS : " {\" test_label\" : \" test_value\" }"
157
160
COUNT : 2
158
161
@@ -192,9 +195,11 @@ jobs:
192
195
run : npm run e2e-tests
193
196
env :
194
197
URL : ${{ steps.deploy_1.outputs.url }}
198
+ SERVICE : ${{ steps.service.outputs.service }}
195
199
REVISION : ${{ steps.service.outputs.service }}-001
196
200
197
- - run : |-
201
+ - name : Update service revision name
202
+ run : |-
198
203
sed -i "s/-001/-002/" ./tests/unit/service.namedrevision.yaml
199
204
200
205
- name : Update service with new revision name
0 commit comments