From dc570e39d4070c01038c33bba4df8aaa556ca424 Mon Sep 17 00:00:00 2001 From: amirreza Date: Wed, 18 Sep 2024 03:52:55 +0330 Subject: [PATCH] workflow --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 559c5f7..21b0c43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,10 +69,11 @@ jobs: - name: tests run: | + sudo sysctl vm.overcommit_memory=1 VALKEY_PRIMARY=$(tests/start_valkey.sh) VALKEY_SENTINEL=$(tests/start_valkey.sh --sentinel) CONTAINERS="$VALKEY_PRIMARY $VALKEY_SENTINEL" - trap "docker stop $CONTAINERS && docker rm $CONTAINERS" EXIT + trap "sudo docker logs --details $VALKEY_PRIMARY && docker stop $CONTAINERS && docker rm $CONTAINERS" EXIT tests/wait_for_valkey.sh $VALKEY_PRIMARY 6379 tests/wait_for_valkey.sh $VALKEY_SENTINEL 26379