Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
uses: actions/upload-artifact@v7
with:
name: DebugStickPro
path: target/DebugStickPro-0.5.3.jar
path: target/DebugStickPro-*.jar
if-no-files-found: error

runtime-test:
needs: build
Expand Down
18 changes: 16 additions & 2 deletions integration/mineflayer/run-server-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,26 @@ if [[ ! -f "${PACKETEVENTS_JAR}" ]] || ! echo "${PACKETEVENTS_SHA256} ${PACKETE
fi
echo "${PACKETEVENTS_SHA256} ${PACKETEVENTS_JAR}" | sha256sum --check --status

if [[ ! -f "${PROJECT_DIR}/target/DebugStickPro-0.5.3.jar" ]]; then
find_plugin_jars() {
find "${PROJECT_DIR}/target" -maxdepth 1 -type f \
-name 'DebugStickPro-*.jar' -print 2>/dev/null | sort
}

mapfile -t plugin_jars < <(find_plugin_jars)
if (( ${#plugin_jars[@]} == 0 )); then
mvn -B -f "${PROJECT_DIR}/pom.xml" package
mapfile -t plugin_jars < <(find_plugin_jars)
fi
if (( ${#plugin_jars[@]} != 1 )); then
echo "Expected exactly one DebugStickPro JAR in target, found ${#plugin_jars[@]}" >&2
printf ' %s\n' "${plugin_jars[@]}" >&2
exit 1
fi
readonly PLUGIN_JAR="${plugin_jars[0]}"

cp "${SERVER_JAR}" "${SERVER_DIR}/server.jar"
cp "${PACKETEVENTS_JAR}" "${SERVER_DIR}/plugins/packetevents.jar"
cp "${PROJECT_DIR}/target/DebugStickPro-0.5.3.jar" "${SERVER_DIR}/plugins/DebugStickPro.jar"
cp "${PLUGIN_JAR}" "${SERVER_DIR}/plugins/DebugStickPro.jar"

printf 'eula=true\n' >"${SERVER_DIR}/eula.txt"
printf '%s\n' \
Expand Down
Loading