mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-19 19:59:39 +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
|
||||
@@ -8,7 +8,7 @@ public class CommonProxy {
|
||||
// etc, and register them with the GameRegistry."
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
Config.syncronizeConfiguration(event.getSuggestedConfigurationFile());
|
||||
|
||||
if(true) throw new RuntimeException("test");
|
||||
MyMod.info(Config.greeting);
|
||||
MyMod.info("I am " + Tags.MODNAME + " at version " + Tags.VERSION + " and group name " + Tags.GROUPNAME);
|
||||
}
|
||||
@@ -43,4 +43,4 @@ public class CommonProxy {
|
||||
public void serverStopped(FMLServerStoppedEvent event) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user