From f84b91dec9e4c7980f0378eeb617351157690b5a Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Fri, 2 Feb 2024 08:14:54 +0100 Subject: [PATCH] Use shell or bat script for tests depending on OS --- .github/workflows/gradle-build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 113e1a02..2d6c1d38 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -47,7 +47,7 @@ jobs: needs: gradle strategy: matrix: - os-version: [ ubuntu-latest, macos-latest, windows-latest ] + os-version: [ ubuntu-latest, macos-14, windows-latest ] java-version: [ 11, 17, 21 ] runs-on: ${{ matrix.os-version }} steps: @@ -62,7 +62,15 @@ jobs: distribution: temurin # Always build with JDK 8 initially java-version: ${{ matrix.java-version }} - - name: Execute integration test + - 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