Skip to content

Commit

Permalink
ci: add some job timeouts (#3638)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored May 21, 2024
1 parent b7cac10 commit a65bf2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/maven-goal
Expand Down Expand Up @@ -128,6 +129,7 @@ jobs:
name: License
runs-on: ubuntu-latest
needs: build
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/unstash
Expand All @@ -148,6 +150,7 @@ jobs:
# When undefined, we need to emulate the default value
if: inputs.test_ci == true || inputs.test_ci == null
runs-on: ubuntu-latest
timeout-minutes: 30
needs: build
steps:
- uses: actions/checkout@v4
Expand All @@ -169,6 +172,7 @@ jobs:
non-app-server-integration-tests:
name: Non-Application Server integration tests
timeout-minutes: 60
if: |
contains(github.event.pull_request.labels.*.name, 'ci:agent-integration')
|| github.event.pull_request.draft == false
Expand Down Expand Up @@ -207,6 +211,7 @@ jobs:
app-server-integration-tests:
name: Application Server integration tests
timeout-minutes: 60
if: |
contains(github.event.pull_request.labels.*.name, 'ci:agent-integration')
|| github.event.pull_request.draft == false
Expand Down Expand Up @@ -248,6 +253,7 @@ jobs:
name: Javadoc
runs-on: ubuntu-latest
needs: build
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/unstash
Expand All @@ -260,6 +266,7 @@ jobs:

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

0 comments on commit a65bf2e

Please sign in to comment.