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 diff --git a/tests/start_valkey.sh b/tests/start_valkey.sh index 5af80d0..92dbdc1 100755 --- a/tests/start_valkey.sh +++ b/tests/start_valkey.sh @@ -41,6 +41,9 @@ if [[ $SENTINEL == 0 ]]; then ARGS=("${ARGS[@]}" --unixsocket /tmp/valkey.sock --unixsocketperm 777) fi +sudo chown $(id -u):$(id -g) -R /data +sudo chmod -R 777 /data + # start valkey sudo docker run \ --health-cmd "valkey-cli -p $PORT:$PORT ping" \