Skip to content

Commit c1c4619

Browse files
committed
Update Memcached health check command in GitHub Actions workflow
- Modified the health check command for Memcached to use a timeout for improved reliability in the GitHub Actions workflow.
1 parent d4716c2 commit c1c4619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/phpunits.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
memcached:
3838
image: memcached:1.6
3939
options: >-
40-
--health-cmd "echo stats | nc localhost 11211 || exit 1"
40+
--health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/udp/127.0.0.1/11211'"
4141
--health-interval 10s
4242
--health-timeout 5s
4343
--health-retries 3

0 commit comments

Comments
 (0)