diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 716b177c..8cee7481 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -53,7 +53,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - java: [ 8, 11, 17, 21 ] + java: [ 8.0.432-tem, 11.0.25-tem, 17.0.13-tem, 21.0.5-tem, 23.0.1-tem ] steps: - name: Checkout uses: actions/checkout@v4 @@ -61,19 +61,27 @@ jobs: run: chmod +x gradlew - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - - name: Set up Java ${{ matrix.java }} - uses: actions/setup-java@v4 - with: - java-version: ${{ matrix.java }} - distribution: temurin + - name: Prepare OS + run: | + sudo apt-get update + sudo apt-get install -y curl zip unzip + - name: Prepare JDK ${{ matrix.java_version }} + run: | + curl -s "https://get.sdkman.io" | bash + source "$HOME/.sdkman/bin/sdkman-init.sh" + echo 'n' | sdk install java ${{ matrix.java_version }} + echo 'y' | sdk install java 11.0.25-tem - name: Download build data uses: actions/download-artifact@v4 with: name: build path: btrace-dist/build - name: Run tests + env: + TEST_JAVA_HOME: "/home/ubuntu/.sdkman/candidates/java/${{ matrix.java_version }}" run: | - which java + set +x +# export TEST_JAVA_HOME="/home/ubuntu/.sdkman/candidates/java/${{ matrix.java_version }}" ./gradlew -Pintegration :integration-tests:test - name: Integration test reports if: always()