Skip to content

Commit 3bc5a06

Browse files
committed
Test on vanilla jdk
1 parent 3cd1a7a commit 3bc5a06

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/mavenpublish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.PACKAGES }}
2929

30+
- name: Test on Vanila JDK
31+
run: |
32+
java -showversion -jar target/spring-boot-0.0.1-SNAPSHOT.jar &
33+
sleep 10
34+
curl localhost:8080 | grep "Greetings from Spring Boot!"
35+
pkill -f target/spring-boot-0.0.1-SNAPSHOT.jar
36+
3037
- name: Download JDK
3138
run: |
3239
id=$(curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/org-crac/jdk/releases/tags/release-crac | jq '.assets[] | select(.name == "jdk.tar.gz").id')
@@ -47,4 +54,3 @@ jobs:
4754
jdk/bin/java -Zrestore:cr &
4855
sleep 3
4956
curl localhost:8080 | grep "Greetings from Spring Boot!"
50-

0 commit comments

Comments
 (0)