115
115
required : false
116
116
type : string
117
117
118
+ timeout_minutes :
119
+ required : false
120
+ type : number
121
+ default : 10
122
+
118
123
secrets :
119
124
VAULT_ADDR :
120
125
required : false
@@ -139,6 +144,7 @@ jobs:
139
144
setup :
140
145
name : ' Environment setup'
141
146
runs-on : ${{ inputs.runner }}
147
+ timeout-minutes : ${{ inputs.timeout_minutes }}
142
148
steps :
143
149
- name : Git checkout
144
150
uses : actions/checkout@v3
@@ -164,6 +170,7 @@ jobs:
164
170
name : ' Build'
165
171
if : ${{ contains(inputs.ci_steps, 'build') || contains(inputs.ci_steps, 'analyze') }}
166
172
runs-on : ${{ inputs.runner }}
173
+ timeout-minutes : ${{ inputs.timeout_minutes }}
167
174
steps :
168
175
- name : Git checkout
169
176
uses : actions/checkout@v3
@@ -206,6 +213,7 @@ jobs:
206
213
name : ' Lint the code'
207
214
if : ${{ contains(inputs.ci_steps, 'lint') }}
208
215
runs-on : ${{ inputs.runner }}
216
+ timeout-minutes : ${{ inputs.timeout_minutes }}
209
217
steps :
210
218
- name : Git checkout
211
219
uses : actions/checkout@v3
@@ -234,6 +242,7 @@ jobs:
234
242
name : ' Run tests'
235
243
if : ${{ contains(inputs.ci_steps, 'test') }}
236
244
runs-on : ${{ inputs.runner }}
245
+ timeout-minutes : ${{ inputs.timeout_minutes }}
237
246
steps :
238
247
- name : Git checkout
239
248
uses : actions/checkout@v3
@@ -262,6 +271,7 @@ jobs:
262
271
name : ' Run tests with coverage'
263
272
if : ${{ contains(inputs.ci_steps, 'jest') }}
264
273
runs-on : ${{ inputs.runner }}
274
+ timeout-minutes : ${{ inputs.timeout_minutes }}
265
275
steps :
266
276
- name : Git checkout
267
277
uses : actions/checkout@v3
@@ -293,6 +303,7 @@ jobs:
293
303
name : ' Analyze the Next.js bundle size'
294
304
if : ${{ contains(inputs.ci_steps, 'analyze') }}
295
305
runs-on : ${{ inputs.runner }}
306
+ timeout-minutes : ${{ inputs.timeout_minutes }}
296
307
steps :
297
308
- name : Git checkout
298
309
uses : actions/checkout@v3
@@ -305,6 +316,7 @@ jobs:
305
316
name : ' Deploy the application'
306
317
if : ${{ contains(inputs.ci_steps, 'deploy') }}
307
318
runs-on : ${{ inputs.runner }}
319
+ timeout-minutes : ${{ inputs.timeout_minutes }}
308
320
steps :
309
321
- name : Git checkout
310
322
uses : actions/checkout@v3
0 commit comments