Skip to content

Commit 5378fc2

Browse files
authored
Merge pull request #1935 from sajeerzeji/GH1052-Set_a_timeout_in_the_github_actions_for_builds
Added timeout configurations to GitHub Actions workflow
2 parents 2c866fd + a79dab7 commit 5378fc2

File tree

2 files changed

+10
-0
lines changed
  • .github/workflows
  • liberty-maven-plugin/src/it/package-type-config-it

2 files changed

+10
-0
lines changed

.github/workflows/maven.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
# UNIX BUILDS
1818
build-unix:
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 130
2021
strategy:
2122
fail-fast: false
2223
matrix:
@@ -75,20 +76,24 @@ jobs:
7576
maven-version: 3.9.9
7677
# Install dependencies
7778
- name: Install ci.ant and ci.common
79+
timeout-minutes: 15
7880
run: |
7981
./mvnw -V clean install -f ci.ant --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -DskipTests
8082
./mvnw -V clean install -f ci.common --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -DskipTests
8183
# Run tests that require a minimum of Java 17 or later
8284
- name: Run tests that require a minimum of Java 17 or later
8385
if: ${{ matrix.java != '8' && matrix.java != '11'}}
86+
timeout-minutes: 20
8487
run: ./mvnw -V verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogsOnFailures"=true -D"invoker.test"="*setup*,*springboot-3-*,*compile-jsp-source-17-*" -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
8588
# Run tests
8689
- name: Run tests
90+
timeout-minutes: 90
8791
run: ./mvnw -V verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogsOnFailures"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
8892

8993
# WINDOWS BUILD
9094
build-windows:
9195
runs-on: windows-latest
96+
timeout-minutes: 170
9297
strategy:
9398
fail-fast: false
9499
matrix:
@@ -139,17 +144,21 @@ jobs:
139144
# Install ci.ant
140145
- name: Install ci.ant
141146
working-directory: ${{github.workspace}}/ci.ant
147+
timeout-minutes: 15
142148
run: .\mvnw.cmd -V clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -DskipTests
143149
# Install ci.common
144150
- name: Install ci.common
145151
working-directory: ${{github.workspace}}/ci.common
152+
timeout-minutes: 15
146153
run: .\mvnw.cmd -V clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -DskipTests
147154
# Run tests that require a minimum of Java 17 or later
148155
- name: Run tests that require a minimum of Java 17 or later
149156
working-directory: ${{github.workspace}}
150157
if: ${{ matrix.java != '8' && matrix.java != '11'}}
158+
timeout-minutes: 45
151159
run: .\mvnw.cmd -V verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogsOnFailures"=true -D"invoker.test"="*setup*,*springboot-3-*,*compile-jsp-source-17-*" -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
152160
# Run tests
153161
- name: Run tests
154162
working-directory: ${{github.workspace}}
163+
timeout-minutes: 90
155164
run: .\mvnw.cmd -V verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogsOnFailures"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"

liberty-maven-plugin/src/it/package-type-config-it/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<appsDirectory>apps</appsDirectory>
6464
<stripVersion>true</stripVersion>
6565
<packageName>${project.artifactId}</packageName>
66+
<libertyRuntimeVersion>${runtimeVersion}</libertyRuntimeVersion>
6667
</configuration>
6768
<executions>
6869
<execution>

0 commit comments

Comments
 (0)