Skip to content

Commit

Permalink
Use Oracle setup-java action to setup Java EA for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Jan 31, 2024
1 parent aac7742 commit c83638d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 326 deletions.
318 changes: 0 additions & 318 deletions .github/actions/scripts/install-jdk.sh

This file was deleted.

15 changes: 7 additions & 8 deletions .github/workflows/java-ea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: 'Set up JDK'
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: EA
- name: Install
# If installing the JDK is in a different step then wrong java would be used
# Need to do install first in order for the OSGi tests to work
run: |
. ./.github/actions/scripts/install-jdk.sh --feature ea --os linux-x64
./mvnw install ${MAVEN_ARGS} -DskipTests=true -Dmaven.javadoc.skip=true -B -V
run: ./mvnw install ${MAVEN_ARGS} -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Test
# If installing the JDK is in a different step then wrong java would be used
run: |
. ./.github/actions/scripts/install-jdk.sh --feature ea --os linux-x64
./mvnw verify -Pdistro,errorLogging ${MAVEN_ARGS} -Dmaven.test.redirectTestOutputToFile=false
run: ./mvnw verify -Pdistro,errorLogging ${MAVEN_ARGS} -Dmaven.test.redirectTestOutputToFile=false
continue-on-error: true

0 comments on commit c83638d

Please sign in to comment.