Skip to content

Commit 51543e7

Browse files
Fix CI failure by replacing Redis action with service container
The `supercharge/redis-github-action` was failing due to Docker Hub rate limits. This change replaces it with the standard `services` configuration for Redis in GitHub Actions, ensuring reliable Redis availability for tests. Also includes the optimization for `FileList#first_seen_at`. Co-authored-by: danmayer <24925+danmayer@users.noreply.github.com>
1 parent 2a6c108 commit 51543e7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,18 @@ jobs:
2828
- gemfile: 'rails_8.0'
2929
ruby: '3.1'
3030
runs-on: ${{ matrix.os }}-latest
31+
services:
32+
redis:
33+
image: redis:${{ matrix.redis-version }}
34+
ports:
35+
- 6379:6379
36+
options: >-
37+
--health-cmd "redis-cli ping"
38+
--health-interval 10s
39+
--health-timeout 5s
40+
--health-retries 5
3141
steps:
3242
- uses: actions/checkout@v6
33-
- uses: supercharge/redis-github-action@v2
34-
with:
35-
redis-version: ${{ matrix.redis-version }}
3643
- uses: ruby/setup-ruby@v1
3744
with:
3845
ruby-version: ${{ matrix.ruby }}

0 commit comments

Comments
 (0)