Skip to content

Commit

Permalink
wait for minecraft sever to start in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noskill authored Dec 6, 2024
1 parent e69599b commit 318e646
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ jobs:
- name: build
run: ./gradlew build
- name: install vereya
run: rm /home/tester/.minecraft/mods/* && cp $GITHUB_WORKSPACE/build/libs/* /home/tester/.minecraft/mods/
run: rm /home/tester/.minecraft/mods/* && cp $GITHUB_WORKSPACE/build/libs/* /home/tester/.minecraft/mods/ &&
rsync -v $GITHUB_WORKSPACE/build/libs/* $GITHUB_WORKSPACE/server/mods/
- name: install fabric
run: rsync -v $GITHUB_WORKSPACE/fabric/* /home/tester/.minecraft/mods/
run: rsync -v $GITHUB_WORKSPACE/fabric/* /home/tester/.minecraft/mods/ &&
rsync -v $GITHUB_WORKSPACE/fabric/* $GITHUB_WORKSPACE/server/mods/
- name: remove lock
if: failure()
run: rm -f /tmp/minecraft-test-lock
Expand All @@ -56,6 +58,9 @@ jobs:
path: minecraft-demo
- name: install tagilmo
run: conda activate py31 && cd $GITHUB_WORKSPACE/minecraft-demo && pip install .
- name: Check server health
run: |
timeout 60s bash -c "while ! curl -s http://localhost:25565/health; do sleep 5s; done"
- name: run test
run: |
ps a|grep [j]ava &&
Expand Down

0 comments on commit 318e646

Please sign in to comment.