Skip to content

Commit a65bf2e

Browse files
authored
ci: add some job timeouts (#3638)
1 parent b7cac10 commit a65bf2e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
build:
6464
name: Build
6565
runs-on: ubuntu-latest
66+
timeout-minutes: 20
6667
steps:
6768
- uses: actions/checkout@v4
6869
- uses: ./.github/workflows/maven-goal
@@ -128,6 +129,7 @@ jobs:
128129
name: License
129130
runs-on: ubuntu-latest
130131
needs: build
132+
timeout-minutes: 10
131133
steps:
132134
- uses: actions/checkout@v4
133135
- uses: ./.github/workflows/unstash
@@ -148,6 +150,7 @@ jobs:
148150
# When undefined, we need to emulate the default value
149151
if: inputs.test_ci == true || inputs.test_ci == null
150152
runs-on: ubuntu-latest
153+
timeout-minutes: 30
151154
needs: build
152155
steps:
153156
- uses: actions/checkout@v4
@@ -169,6 +172,7 @@ jobs:
169172
170173
non-app-server-integration-tests:
171174
name: Non-Application Server integration tests
175+
timeout-minutes: 60
172176
if: |
173177
contains(github.event.pull_request.labels.*.name, 'ci:agent-integration')
174178
|| github.event.pull_request.draft == false
@@ -207,6 +211,7 @@ jobs:
207211
208212
app-server-integration-tests:
209213
name: Application Server integration tests
214+
timeout-minutes: 60
210215
if: |
211216
contains(github.event.pull_request.labels.*.name, 'ci:agent-integration')
212217
|| github.event.pull_request.draft == false
@@ -248,6 +253,7 @@ jobs:
248253
name: Javadoc
249254
runs-on: ubuntu-latest
250255
needs: build
256+
timeout-minutes: 10
251257
steps:
252258
- uses: actions/checkout@v4
253259
- uses: ./.github/workflows/unstash
@@ -260,6 +266,7 @@ jobs:
260266

261267
unit-tests-windows:
262268
name: Build & Test Windows
269+
timeout-minutes: 60
263270
# Inputs aren't defined on some events
264271
# When undefined, we need to emulate the default value
265272
if: |
@@ -287,6 +294,7 @@ jobs:
287294
288295
jdk-compatibility-tests:
289296
name: JDK Compatibility Tests
297+
timeout-minutes: 60
290298
if: |
291299
contains(github.event.pull_request.labels.*.name, 'ci:jdk-compatibility')
292300
|| inputs.jdk_compatibility_ci == true
@@ -324,6 +332,7 @@ jobs:
324332
jboss:
325333
name: JBoss integration tests
326334
runs-on: ubuntu-latest
335+
timeout-minutes: 30
327336
needs: build
328337
# If no PR event or if a PR event that's caused by a non-fork and non dependabot actor
329338
if: github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' )

0 commit comments

Comments
 (0)