Skip to content

Commit

Permalink
wait for minecraft sever to start in tests (#80)
Browse files Browse the repository at this point in the history
* wait for minecraft sever to start in tests

* Update build.yml
  • Loading branch information
noskill authored Dec 24, 2024
1 parent e69599b commit 2cbae3a
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 -v -s http://localhost:25565/health 2>&1 | grep -q 'Empty reply'; do sleep 5s; done"
- name: run test
run: |
ps a|grep [j]ava &&
Expand Down

0 comments on commit 2cbae3a

Please sign in to comment.