Add timeout to DeliveryAssuranceOnewayTest since it always hangs on Windows build #2314
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Build and Test" | |
| on: | |
| pull_request: | |
| branches: ['main', '3.6.x-fixes', '3.5.x-fixes', '3.4.x-fixes'] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest] | |
| java: [17, 21] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| timeout-minutes: 130 | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v3.6.0 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| java-version: '${{ matrix.java }}' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Apache Maven (Windows) | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| run: mvn -U clean install -fae -B -Peverything | |
| - name: Build with Apache Maven | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| run: mvn -U clean install -Djava.awt.headless=true -fae -B -Peverything | |
| env: | |
| MAVEN_OPTS: "-Xmx1024M" |