diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 50c2776693..79f36e97e7 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -name: Verify +name: GitHub CI on: push: @@ -23,31 +23,41 @@ on: - dependabot/** pull_request: + jobs: build: + strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] java: [8, 11, 17] - jdk: [temurin, zulu] + jdk: [temurin] fail-fast: false runs-on: ${{ matrix.os }} timeout-minutes: 120 + steps: - - name: Verify - uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1 - with: - ff-goal: 'clean install' - verify-goal: 'clean install -P run-its' - verify-fail-fast: false - - name: Upload artifact surefire-its - uses: actions/upload-artifact@v2-preview - if: failure() - with: - name: ${{ matrix.os }}-surefire-its - path: | - surefire-its/target/*/log.txt - surefire-its/target/**/surefire-reports/* - surefire-its/target/**/failsafe-reports/* - !surefire-its/target/failsafe-reports \ No newline at end of file + - name: Checkout + uses: actions/checkout@v1 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v2.4.0 + with: + distribution: ${{ matrix.jdk }} + java-version: ${{ matrix.java }} + cache: 'maven' + + - name: Build with Maven + run: mvn clean install -e -B -V -nsu --no-transfer-progress -P run-its -Dfailsafe-integration-test-port=8083 + + - name: Upload artifact surefire-its + uses: actions/upload-artifact@v2-preview + if: failure() + with: + name: ${{ matrix.os }}-surefire-its + path: | + surefire-its/target/*/log.txt + surefire-its/target/**/surefire-reports/* + surefire-its/target/**/failsafe-reports/* + !surefire-its/target/failsafe-reports