Skip to content

Commit 9a017bd

Browse files
committed
shell stuff
1 parent 5243ce5 commit 9a017bd

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,28 +144,28 @@ jobs:
144144
145145
- name: Test Valkey operations
146146
run: |
147-
kubectl run redis-cli-test --rm -i --restart=Never --image=redis:7-alpine -- sh -c '
148-
echo "Setting test data..."
147+
kubectl run redis-cli-test --rm -i --restart=Never --image=redis:7-alpine -- sh -c "
148+
echo 'Setting test data...'
149149
redis-cli -h valkey-test-valkey-leader-rw -p 6379 set test-key integration-test
150150
redis-cli -h valkey-test-valkey-leader-rw -p 6379 incr counter
151151
152-
echo "Testing read operations with retry logic..."
153-
for i in {1..5}; do
154-
echo "Attempt $i/5..."
155-
TEST_VALUE=$(redis-cli -h valkey-test-valkey-leader-r -p 6379 get test-key)
156-
echo "Got value: \"$TEST_VALUE\""
152+
echo 'Testing read operations with retry logic...'
153+
for i in 1 2 3 4 5; do
154+
echo \"Attempt \$i/5...\"
155+
TEST_VALUE=\$(redis-cli -h valkey-test-valkey-leader-r -p 6379 get test-key)
156+
echo \"Got value: \\\"\$TEST_VALUE\\\"\"
157157
158-
if [ "$TEST_VALUE" = "integration-test" ]; then
159-
echo "✅ Integration test passed on attempt $i!"
158+
if [ \"\$TEST_VALUE\" = \"integration-test\" ]; then
159+
echo '✅ Integration test passed on attempt '\$i'!'
160160
exit 0
161161
fi
162162
163-
if [ $i -lt 5 ]; then
164-
echo "Retrying in 3 seconds..."
163+
if [ \$i -lt 5 ]; then
164+
echo 'Retrying in 3 seconds...'
165165
sleep 3
166166
fi
167167
done
168168
169-
echo "❌ Test failed after 5 attempts. Final value: \"$TEST_VALUE\""
169+
echo \"❌ Test failed after 5 attempts. Final value: \\\"\$TEST_VALUE\\\"\"
170170
exit 1
171-
'
171+
"

0 commit comments

Comments
 (0)