* spaces

* revert kotlin ver

* more framework for kotlin

* make it available to external consumers

* vscode

* update scripts to properly catch broken runserveR

* editor config

* fix recursive zips

* improve

* update links

* more cleanup
This commit is contained in:
bombcar authored and GitHub committed 2022-02-14 15:44:40 -06:00
1 parent ab7a0eef67
commit a71130d437
11 files changed
+109 -77

No files matched your search

+11 -5
View File
@@ -1,22 +1,28 @@
if [[ -d "run/crash-reports" ]]; then
#!/usr/bin/env bash
RUNDIR="run"
CRASH="crash-reports"
SERVERLOG="server.log"
if [[ -d $RUNDIR/$CRASH ]]; then
echo "Crash reports detected:"
cat $directory/*
cat $RUNDIR/$CRASH/crash*.txt
exit 1
fi
if grep --quiet "Fatal errors were detected" server.log; then
if grep --quiet "Fatal errors were detected" $SERVERLOG; then
echo "Fatal errors detected:"
cat server.log
exit 1
fi
if grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" server.log; then
if grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" $SERVERLOG; then
echo "Server force stopped:"
cat server.log
exit 1
fi
if grep --quiet 'Done .+ For help, type "help" or "?"' server.log; then
if ! grep --quiet -Po '.+Done \(.+\)\! For help, type "help" or "\?"' $SERVERLOG; then
echo "Server didn't finish startup:"
cat server.log
exit 1
+5 -5
View File
@@ -14,16 +14,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
with:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
@@ -36,8 +36,8 @@ jobs:
- name: Run server for 1.5 minutes
run: |
mkdir run
echo "eula=true" > run/eula.txt
timeout 90 ./gradlew runServer | tee --append server.log || true
echo "eula=true" > run/eula.txt
timeout 90 ./gradlew runServer 2>&1 | tee -a server.log || true
- name: Test no errors reported during server run
run: |
@@ -38,8 +38,8 @@ jobs:
-x "README.md" \
-x "LICENSE" \
\
-x "starter.zip" \
-x "migration.zip"
-x "packages/starter.zip" \
-x "packages/migration.zip"
- name: Zip migration
uses: montudor/action-zip@v1
@@ -59,8 +59,8 @@ jobs:
-x "LICENSE" \
-x "README.md" \
\
-x "starter.zip" \
-x "migration.zip"
-x "packages/starter.zip" \
-x "packages/migration.zip"
- name: Update latest tag
uses: "marvinpinto/action-automatic-releases@latest"
+4 -4
View File
@@ -38,8 +38,8 @@ jobs:
-x "README.md" \
-x "LICENSE" \
\
-x "starter.zip" \
-x "migration.zip"
-x "packages/starter.zip" \
-x "packages/migration.zip"
- name: Zip migration
uses: montudor/action-zip@v1
@@ -60,8 +60,8 @@ jobs:
-x "LICENSE" \
-x "README.md" \
\
-x "starter.zip" \
-x "migration.zip"
-x "packages/starter.zip" \
-x "packages/migration.zip"
- name: Release under current tag
uses: "marvinpinto/action-automatic-releases@latest"