diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d5944b6e3..d69d0d610e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: | @@ -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 @@ -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]' )