diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 2d6c1d38..cdd5e448 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -2,7 +2,7 @@ name: Gradle Build and Test on: pull_request: push: - workflow_dispatch: {} + workflow_dispatch: jobs: gradle: runs-on: ubuntu-latest @@ -43,34 +43,7 @@ jobs: name: maven-repo path: build/maven-repo - test-java-os-mix: - needs: gradle - strategy: - matrix: - os-version: [ ubuntu-latest, macos-14, windows-latest ] - java-version: [ 11, 17, 21 ] - runs-on: ${{ matrix.os-version }} - steps: - - uses: actions/checkout@v3 - - name: Download Artifacts - uses: actions/download-artifact@master - with: - name: maven-repo - path: build/maven-repo - - uses: actions/setup-java@v3 + - name: Trigger Test Matrix Workflow + uses: benc-uk/workflow-dispatch@v1 with: - distribution: temurin - # Always build with JDK 8 initially - java-version: ${{ matrix.java-version }} - - name: Execute integration test (on Unixes) - if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }} - run: | - uname -a - ./gradlew --version - ./gradlew integrationTestOnly --scan - - name: Execute integration test (on Windows) - if: ${{ runner.os == 'Windows' }} - run: | - uname -a - ./gradlew --version - ./gradlew integrationTestOnly --scan + workflow: test-java-os-mix diff --git a/.github/workflows/test-java-os-mix.yml b/.github/workflows/test-java-os-mix.yml new file mode 100644 index 00000000..6410fc8c --- /dev/null +++ b/.github/workflows/test-java-os-mix.yml @@ -0,0 +1,36 @@ +on: + workflow_dispatch: + +jobs: + test-java-os-mix: + needs: gradle + strategy: + matrix: + os-version: [ ubuntu-latest, macos-14, windows-latest ] + java-version: [ 8, 11, 17, 21 ] + runs-on: ${{ matrix.os-version }} + steps: + - uses: actions/checkout@v3 + - name: Download Artifacts + uses: actions/download-artifact@master + with: + name: maven-repo + path: build/maven-repo + - uses: actions/setup-java@v3 + with: + distribution: temurin + # Always build with JDK 8 initially + java-version: ${{ matrix.java-version }} + - name: Execute integration test (on Unixes) +# if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }} + run: | + uname -a + ./gradlew --version + ./gradlew integrationTestOnly --scan +# - name: Execute integration test (on Windows) +# if: ${{ runner.os == 'Windows' }} +# run: | +# uname -a +# gradlew --version +# gradlew integrationTestOnly --scan +