Skip to content

Commit 05e1a5f

Browse files
ReubenBondCopilot
andcommitted
Use Ministack for Kinesis CI
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3f5060d4-b229-476c-bdf3-9923ad459bb2
1 parent f473a5a commit 05e1a5f

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
CONSUL_IMAGE: public.ecr.aws/hashicorp/consul:1.19
2323
DYNAMODB_IMAGE: amazon/dynamodb-local:latest
2424
ELASTICMQ_IMAGE: softwaremill/elasticmq-native:latest
25-
KINESIS_IMAGE: ghcr.io/etspaceman/kinesis-mock:0.6.2@sha256:31e590c6483d846e7df9d51bfe570a1eb6269d6947e369cc5b528a20e1f758b7
25+
MINISTACK_IMAGE: ministackorg/ministack:1.4.11@sha256:8b05715b9effc23d998d4a4e0c0a0c4af7f9435f0ff076a30cf27a77326f14b1
2626
MSSQL_IMAGE: mcr.microsoft.com/mssql/server:latest
2727
NATS_IMAGE: nats:latest
2828
POSTGRES_IMAGE: postgres
@@ -934,17 +934,17 @@ jobs:
934934
framework: ["net8.0", "net10.0"]
935935
steps:
936936
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
937-
- name: Start Kinesis Mock
937+
- name: Start Ministack
938938
shell: bash
939939
run: |
940940
set -euo pipefail
941941
942-
bash .github/scripts/docker-pull-with-retry.sh "$KINESIS_IMAGE"
942+
bash .github/scripts/docker-pull-with-retry.sh "$MINISTACK_IMAGE"
943943
944-
docker run -d --pull=never --name kinesis \
945-
-p 4568:4568 \
946-
-e AWS_REGION="$AWS_REGION" \
947-
"$KINESIS_IMAGE"
944+
docker run -d --pull=never --name ministack \
945+
-p 4566:4566 \
946+
-e MINISTACK_REGION="$AWS_REGION" \
947+
"$MINISTACK_IMAGE"
948948
- name: Start DynamoDB Local
949949
shell: bash
950950
run: |
@@ -958,11 +958,11 @@ jobs:
958958
-e AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" \
959959
-e AWS_REGION="$AWS_REGION" \
960960
"$DYNAMODB_IMAGE"
961-
- name: Wait for Kinesis Mock and DynamoDB Local
961+
- name: Wait for Ministack and DynamoDB Local
962962
run: |
963-
echo "Waiting for Kinesis Mock and DynamoDB Local to be ready..."
964-
timeout 60 bash -c 'until curl --fail --silent http://localhost:4568/healthcheck > /dev/null && nc -z localhost 8000; do sleep 1; done'
965-
echo "Kinesis Mock and DynamoDB Local are ready"
963+
echo "Waiting for Ministack and DynamoDB Local to be ready..."
964+
timeout 60 bash -c 'until curl --fail --silent http://localhost:4566/_ministack/health > /dev/null && nc -z localhost 8000; do sleep 1; done'
965+
echo "Ministack and DynamoDB Local are ready"
966966
- name: Setup .NET
967967
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
968968
with:
@@ -976,8 +976,8 @@ jobs:
976976
OrleansKinesisStreamTests2 \
977977
OrleansKinesisSubscriptionMultiplicityTests
978978
do
979-
aws --endpoint-url=http://localhost:4568 kinesis create-stream --stream-name "$stream" --shard-count 4 --region "$AWS_REGION"
980-
aws --endpoint-url=http://localhost:4568 kinesis wait stream-exists --stream-name "$stream" --region "$AWS_REGION"
979+
aws --endpoint-url=http://localhost:4566 kinesis create-stream --stream-name "$stream" --shard-count 4 --region "$AWS_REGION"
980+
aws --endpoint-url=http://localhost:4566 kinesis wait stream-exists --stream-name "$stream" --region "$AWS_REGION"
981981
done
982982
- name: Test
983983
run: dotnet test
@@ -991,15 +991,15 @@ jobs:
991991
--
992992
-parallel none -noshadow
993993
env:
994-
ORLEANSKINESISCONNECTIONSTRING: "http://localhost:4568;test;test;us-east-1"
994+
ORLEANSKINESISCONNECTIONSTRING: "http://localhost:4566;test;test;us-east-1"
995995
ORLEANSDYNAMODBSERVICE: "http://localhost:8000"
996996
# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]
997997
ORLEANSDYNAMODBACCESSKEY: "test"
998998
# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]
999999
ORLEANSDYNAMODBSECRETKEY: "test"
1000-
- name: Clean up Kinesis Mock
1000+
- name: Clean up Ministack
10011001
if: always()
1002-
run: docker rm -f kinesis || true
1002+
run: docker rm -f ministack || true
10031003
- name: Clean up DynamoDB Local
10041004
if: always()
10051005
run: docker rm -f dynamodb || true

0 commit comments

Comments
 (0)