|
81 | 81 | required: false |
82 | 82 | type: boolean |
83 | 83 | default: false |
| 84 | + timeout: |
| 85 | + description: "Timeout for each job in minutes." |
| 86 | + type: number |
| 87 | + required: false |
| 88 | + default: 60 |
84 | 89 |
|
85 | 90 | secrets: |
86 | 91 | DATAVISYN_BOT_REPO_TOKEN: |
@@ -114,6 +119,7 @@ permissions: |
114 | 119 | jobs: |
115 | 120 | build-node: |
116 | 121 | name: Node |
| 122 | + timeout-minutes: ${{ fromJSON(inputs.timeout) }} |
117 | 123 | if: ${{ (!inputs.cypress_enable || (!inputs.cypress_run_because_flag && inputs.cypress_run_because_branch != 'true')) && (!inputs.playwright_enable || (!inputs.playwright_run_because_flag && inputs.playwright_run_because_branch != 'true')) }} |
118 | 124 | concurrency: |
119 | 125 | group: "node-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}" |
@@ -153,6 +159,7 @@ jobs: |
153 | 159 |
|
154 | 160 | build-python: |
155 | 161 | name: Python |
| 162 | + timeout-minutes: ${{ fromJSON(inputs.timeout) }} |
156 | 163 | if: ${{ (!inputs.cypress_enable || (!inputs.cypress_run_because_flag && inputs.cypress_run_because_branch != 'true')) && (!inputs.playwright_enable || (!inputs.playwright_run_because_flag && inputs.playwright_run_because_branch != 'true')) }} |
157 | 164 | concurrency: |
158 | 165 | group: "python-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}" |
@@ -190,6 +197,7 @@ jobs: |
190 | 197 | # If cypress is used, build node and python sequentially as it is avoiding the duplicate install overhead |
191 | 198 | build-node-python-cypress: |
192 | 199 | name: Node, Python, Cypress |
| 200 | + timeout-minutes: ${{ fromJSON(inputs.timeout) }} |
193 | 201 | if: ${{ inputs.cypress_enable && (inputs.cypress_run_because_flag || inputs.cypress_run_because_branch == 'true') }} |
194 | 202 | concurrency: |
195 | 203 | group: "node-python-cypress-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}" |
@@ -329,6 +337,7 @@ jobs: |
329 | 337 | # If playwright is used, build node and python sequentially as it is avoiding the duplicate install overhead |
330 | 338 | build-node-python-playwright: |
331 | 339 | name: Node, Python, Playwright |
| 340 | + timeout-minutes: ${{ fromJSON(inputs.timeout) }} |
332 | 341 | if: ${{ inputs.playwright_enable && (inputs.playwright_run_because_flag || inputs.playwright_run_because_branch == 'true') }} |
333 | 342 | concurrency: |
334 | 343 | group: "node-python-playwright-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}" |
|
0 commit comments