From a948a8d5e25aa2e1a5e436aceac3bab53dcc48e1 Mon Sep 17 00:00:00 2001 From: Marco Rizzi Date: Fri, 7 Oct 2022 11:13:27 +0200 Subject: [PATCH] Introduced matrix strategy for multiple OSes (#106) * Introduced matrix strategy for multiple OSes * Simplied tests execution * Reverted some prev changes * Moved Windup build into the main job * Re-order job's steps * Provided releative path to settings.xml file * Removed commented configurations * actions/setup-java@v3 * actions/checkout@v3 * Switched to Java 'temurin' distribution --- .github/workflows/pr-build-jdk11.yaml | 38 ++++++++++++--------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pr-build-jdk11.yaml b/.github/workflows/pr-build-jdk11.yaml index 41db91f..cba7943 100644 --- a/.github/workflows/pr-build-jdk11.yaml +++ b/.github/workflows/pr-build-jdk11.yaml @@ -7,37 +7,33 @@ on: jobs: - windup-build: - runs-on: ubuntu-latest + windup-quickstarts-pr-builder-jdk11: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} steps: - - name: Checkout repo - uses: actions/checkout@v2.3.4 + - name: Checkout windup repo + uses: actions/checkout@v3 with: repository: windup/windup - - name: Set up JDK 11 - uses: actions/setup-java@v2 + path: windup + - name: Checkout windup repo + uses: actions/checkout@v3 with: - java-version: '11' - distribution: 'adopt' - java-package: jdk - cache: 'maven' - - name: Build on JDK 11 - run: mvn -B clean install -DskipTests - - windup-quickstarts-pr-builder-jdk11: - runs-on: ubuntu-latest - needs: [windup-build] - steps: - - uses: actions/checkout@v2.3.4 + path: windup-quickstarts - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '11' - distribution: 'adopt' + distribution: 'temurin' java-package: jdk cache: 'maven' + - name: Build Windup on JDK 11 + run: mvn -B clean install -DskipTests -f windup - name: Build on JDK 11 - run: mvn -B clean install -s settings.xml -DskipTests && mvn -B clean install -s settings.xml + run: mvn -B clean install -s ./windup-quickstarts/settings.xml -DskipTests -f windup-quickstarts && mvn -B clean install -s ./windup-quickstarts/settings.xml -f windup-quickstarts