Skip to content

Commit d5a2f39

Browse files
committed
ci: update JDK version and add JAVA_HOME check in test workflow
1 parent f876a6a commit d5a2f39

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# Checkout the repository
1717
- uses: actions/checkout@v4
1818

19-
# Set up JDK 21
19+
# Set up JDK 24
2020
- name: Set up JDK 24
2121
uses: actions/setup-java@v4
2222
with:
@@ -25,7 +25,11 @@ jobs:
2525
cache: maven
2626
cache-dependency-path: pom.xml
2727

28-
# Build with Maven
29-
- name: Compile with Maven
30-
run: mvn test -f pom.xml
28+
# Verify JAVA_HOME is set
29+
- name: Verify JAVA_HOME
30+
run: echo "JAVA_HOME is set to: $JAVA_HOME"
3131

32+
# Run Maven tests
33+
- name: Run Maven Tests
34+
# This command will execute your project's tests.
35+
run: mvn test -f pom.xml

0 commit comments

Comments
 (0)