ci(publish): start redis container before testing shorebird_redis_client (#3797)

This commit is contained in:
nickshorebird
2026-05-22 14:46:40 -04:00
committed by GitHub
parent 57a6193efc
commit fed568644b
2 changed files with 14 additions and 0 deletions
@@ -14,6 +14,13 @@ on:
description: |
Tag prefix expected for this package (e.g., "shorebird_ci-v"). The
version after the prefix must match the version in pubspec.yaml.
needs_redis:
required: false
default: false
type: boolean
description: |
Start a redis/redis-stack-server container before running tests.
Required for packages whose test suite connects to Redis.
jobs:
publish:
@@ -26,6 +33,12 @@ jobs:
- name: 📚 Git Checkout
uses: actions/checkout@v6
- name: 🐳 Run Redis
if: inputs.needs_redis
run: |
docker pull redis/redis-stack-server:latest
docker run --name test_redis -d -p 6379:6379 --rm -e REDIS_ARGS="--requirepass password" redis/redis-stack-server:latest
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
@@ -11,5 +11,6 @@ jobs:
with:
working_directory: packages/redis_client
tag_prefix: shorebird_redis_client-v
needs_redis: true
permissions:
id-token: write