Skip to content

Commit 2da7713

Browse files
authored
Merge pull request #8 from nsumbadze/fix/php85-redis-cluster-tests
ci: retry transient Redis Cluster test crashes
2 parents 206da23 + b27ff87 commit 2da7713

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
runs-on: ubuntu-24.04
8181

8282
strategy:
83-
fail-fast: true
83+
fail-fast: false
8484
matrix:
8585
php: [8.3, 8.4, 8.5]
8686
client: ['phpredis', 'predis']
@@ -154,7 +154,13 @@ jobs:
154154
redis-cli -c -h 127.0.0.1 -p 7002 cluster info | grep "cluster_state:ok"
155155
156156
- name: Execute tests
157-
run: vendor/bin/phpunit --fail-on-risky --fail-on-warning --stop-on-error --stop-on-failure --fail-on-deprecation
157+
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4
158+
with:
159+
timeout_seconds: 180
160+
max_attempts: 2
161+
retry_wait_seconds: 1
162+
retry_on: error
163+
command: vendor/bin/phpunit --fail-on-risky --fail-on-warning --stop-on-error --stop-on-failure --fail-on-deprecation
158164
env:
159165
REDIS_CLIENT: ${{ matrix.client }}
160166
REDIS_CLUSTER_HOSTS_AND_PORTS: 127.0.0.1:7000,127.0.0.1:7001,127.0.0.1:7002

0 commit comments

Comments
 (0)