@@ -142,20 +142,28 @@ jobs:
142
142
143
143
runs-on : ${{ matrix.os }}
144
144
needs : compile-binaries
145
+ env :
146
+ TEMPORAL_CLIENT_CERT : ${{ secrets.TEMPORAL_CLIENT_CERT }}
147
+ TEMPORAL_CLIENT_KEY : ${{ secrets.TEMPORAL_CLIENT_KEY }}
145
148
steps :
146
149
# We don't need the core submodule here since bridge since we don't build the project
147
150
- uses : actions/checkout@v2
151
+ if : ${{ matrix.server != 'cloud' || env.TEMPORAL_CLIENT_CERT != '' }}
148
152
- uses : actions/setup-node@v1
149
153
with :
150
154
node-version : ${{ matrix.node }}
155
+ if : ${{ matrix.server != 'cloud' || env.TEMPORAL_CLIENT_CERT != '' }}
151
156
# No need to compile anything, we just need the package ./scripts and their dependencies
152
157
- name : Install dependencies without compilation
153
158
run : npm ci --ignore-scripts
159
+ if : ${{ matrix.server != 'cloud' || env.TEMPORAL_CLIENT_CERT != '' }}
154
160
- uses : actions/download-artifact@v2
155
161
with :
156
162
name : packages-${{ matrix.target }}
157
163
path : /tmp/registry/storage
164
+ if : ${{ matrix.server != 'cloud' || env.TEMPORAL_CLIENT_CERT != '' }}
158
165
- run : node scripts/init-from-verdaccio.js --registry-dir /tmp/registry --sample https://github.com/temporalio/samples-typescript/tree/next/${{ matrix.sample }}
166
+ if : ${{ matrix.server != 'cloud' || env.TEMPORAL_CLIENT_CERT != '' }}
159
167
- name : Get Temporal docker-compose.yml
160
168
run : wget https://raw.githubusercontent.com/temporalio/docker-compose/v1.13.0/docker-compose.yml
161
169
if : ${{ matrix.server == 'local' }}
@@ -172,10 +180,7 @@ jobs:
172
180
- name : Create certs dir
173
181
# We write the certs to disk because it serves the sample
174
182
run : node scripts/create-certs-dir.js
175
- env :
176
- TEMPORAL_CLIENT_CERT : ${{ secrets.TEMPORAL_CLIENT_CERT }}
177
- TEMPORAL_CLIENT_KEY : ${{ secrets.TEMPORAL_CLIENT_KEY }}
178
- if : ${{ matrix.server == 'cloud' }}
183
+ if : ${{ matrix.server == 'cloud' && env.TEMPORAL_CLIENT_CERT != '' }}
179
184
- name : Test run a workflow
180
185
run : node scripts/test-example.js --work-dir /tmp/registry/example
181
186
env :
@@ -186,7 +191,8 @@ jobs:
186
191
TEMPORAL_CLIENT_CERT_PATH : /tmp/temporal-certs/client.pem
187
192
TEMPORAL_CLIENT_KEY_PATH : /tmp/temporal-certs/client.key
188
193
TEMPORAL_TASK_QUEUE : ${{ format('{0}-{1}-{2}', matrix.os, matrix.node, matrix.target) }}
194
+ if : ${{ matrix.server != 'cloud' || env.TEMPORAL_CLIENT_CERT != '' }}
189
195
- run : rm /tmp/temporal-certs/client.pem
190
- if : ${{ matrix.server == 'cloud' }}
196
+ if : ${{ matrix.server == 'cloud' && env.TEMPORAL_CLIENT_CERT != '' }}
191
197
- run : rm /tmp/temporal-certs/client.key
192
- if : ${{ matrix.server == 'cloud' }}
198
+ if : ${{ matrix.server == 'cloud' && env.TEMPORAL_CLIENT_CERT != '' }}
0 commit comments