Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 55 additions & 2 deletions .github/workflows/Master-Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,74 @@ name: master-build
on:
push:
branches: [ "master" ]
paths-ignore:
- "**/*.md"
- "**/*.gitignore"
- "**/*.gitattributes"
jobs:
build:
runs-on: ubuntu-latest

services:
localstack:
image: localstack/localstack:latest
ports:
- 4566:4566
env:
SERVICES: sqs,sns,kms,iam
DEBUG: 1
DOCKER_HOST: unix:///var/run/docker.sock
options: >-
--health-cmd "curl -f http://localhost:4566/_localstack/health || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 30
--health-start-period 30s
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x

- name: Verify LocalStack is Ready
run: |
echo "Waiting for LocalStack to be fully ready..."
max_attempts=30
attempt=0
while [ $attempt -lt $max_attempts ]; do
if curl -f http://localhost:4566/_localstack/health 2>/dev/null; then
echo "LocalStack is ready!"
curl -s http://localhost:4566/_localstack/health | jq '.'
break
fi
attempt=$((attempt + 1))
echo "Attempt $attempt/$max_attempts - LocalStack not ready yet, waiting..."
sleep 3
done
if [ $attempt -eq $max_attempts ]; then
echo "ERROR: LocalStack did not become ready in time"
exit 1
fi
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal

# Run unit tests first (no external dependencies)
- name: Run Unit Tests
run: dotnet test --no-build --verbosity normal --filter "Category=Unit"

# Run integration tests against LocalStack
- name: Run Integration Tests with LocalStack
run: dotnet test --no-build --verbosity normal --filter "Category=Integration&Category=RequiresLocalStack"
env:
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_DEFAULT_REGION: us-east-1
AWS_ENDPOINT_URL: http://localhost:4566

run-Lint:
runs-on: ubuntu-latest
Expand Down
84 changes: 0 additions & 84 deletions .github/workflows/PR-CI.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/Pre-release-CI.yml

This file was deleted.

Loading
Loading