Skip to content

Commit c9a8b34

Browse files
committed
Test service after restore
1 parent 091a261 commit c9a8b34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/mavenpublish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,9 @@ jobs:
3737
#sleep 10 # allow checkpoint to settle
3838
#[ 137 = $(< exitcode) ]
3939
- run: timeout 30 jdk/bin/java -Zcheckpoint:cr -jar target/spring-boot-0.0.1-SNAPSHOT.jar || [ $? = 137 ]
40-
- run: timeout 10 jdk/bin/java -Zrestore:cr || [ $? = 124 ]
40+
- run: |
41+
jdk/bin/java -Zrestore:cr &
42+
sleep 3
43+
curl localhost:8080 | grep "Greetings from Spring Boot!"
44+
pkill -f spring-boot-0.0.1-SNAPSHOT.jar
4145

0 commit comments

Comments
 (0)