Skip to content

Commit

Permalink
SDKMan based Java matrix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbachorik committed Nov 9, 2024
1 parent 97cff09 commit 40093a7
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,35 @@ 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
- name: Grant execute permission for gradlew
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()
Expand Down

0 comments on commit 40093a7

Please sign in to comment.