Skip to content

Commit

Permalink
add a delay time to wait for rcon-cli to start
Browse files Browse the repository at this point in the history
  • Loading branch information
win5923 committed Feb 10, 2024
1 parent def5ccb commit 9e6db85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ jobs:
- name: Test if server is up and running
run: |
sleep 5
if ! docker exec palworld-server rcon-cli Info | grep -q "Welcome to Pal Server"; then
echo "Server may not have started successfully."
exit 1
fi
- name: Test if port 8211, 27015 and 25575 are listening
run: |
sleep 10
nc -z -u -v 127.0.0.1 8211 || exit 1
nc -z -u -v 127.0.0.1 27015 || exit 1
nc -z -v 127.0.0.1 25575 || exit 1
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:

- name: Run server
run: |
docker run -d \
docker run \
--name palworld-server \
--platform linux/arm64 \
-p 8211:8211/udp \
Expand Down Expand Up @@ -222,14 +222,14 @@ jobs:
- name: Test if server is up and running
run: |
sleep 5
if ! docker exec palworld-server rcon-cli Info | grep -q "Welcome to Pal Server"; then
echo "Server may not have started successfully."
exit 1
fi
- name: Test if port 8211, 27015 and 25575 are listening
run: |
sleep 10
nc -z -u -v 127.0.0.1 8211 || exit 1
nc -z -u -v 127.0.0.1 27015 || exit 1
nc -z -v 127.0.0.1 25575 || exit 1
Expand Down

0 comments on commit 9e6db85

Please sign in to comment.