mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-21 04:32:19 +00:00
ci: workaround server crash not resulting in gradle error; add step to check generated crash report
This commit is contained in:
1 parent
86de13e712
commit
a5d5ea510a
3 files changed
+18
-7
No files matched your search
@@ -0,0 +1,9 @@
|
||||
directory="run/crash-reports"
|
||||
if [ -d $directory ]; then
|
||||
echo "Crash reports detected:"
|
||||
cat $directory/*
|
||||
exit 1
|
||||
else
|
||||
echo "No crash reports detected"
|
||||
exit 0
|
||||
fi
|
||||
@@ -31,10 +31,12 @@ jobs:
|
||||
- name: Build the mod
|
||||
run: ./gradlew build
|
||||
|
||||
- name: Run server with mod
|
||||
- name: Try running server
|
||||
timeout-minutes: 1
|
||||
run: ./gradlew runServer
|
||||
run: |
|
||||
mkdir run
|
||||
echo "eula=true" > run/eula.txt
|
||||
./gradlew runServer
|
||||
|
||||
- name: Run client with mod
|
||||
timeout-minutes: 1
|
||||
run: ./gradlew runClient
|
||||
- name: Test if any crash reports are present
|
||||
run: .github/scripts/test-crash-reports.sh
|
||||
Reference in new issue
Block a user