@@ -142,14 +142,23 @@ jobs:
142142 run : dotnet build --configuration Release --no-restore -p:PackageVersion=${{ steps.gitversion.outputs.MajorMinorPatch }}
143143 working-directory : ' ${{ env.working-directory }}'
144144
145- - name : Step-09 Test Solution
145+ - name : Step-09 Run Unit Tests
146146 run : |
147- # Run only unit tests, exclude integration tests that require LocalStack/Docker
148- # Integration tests are in Integration folders/namespaces and may cause CI timeouts
149- # Also exclude Security tests which require IAM/LocalStack services
150- dotnet test --configuration Release --no-build --no-restore --verbosity normal --filter "FullyQualifiedName!~Integration&FullyQualifiedName!~Security"
147+ dotnet test --configuration Release --no-build --no-restore --verbosity normal \
148+ --filter "FullyQualifiedName!~Integration&FullyQualifiedName!~Security"
151149 working-directory : ' ${{ env.working-directory }}'
152150
151+ - name : Step-09b Run Integration Tests with LocalStack
152+ run : |
153+ dotnet test --configuration Release --no-build --no-restore --verbosity normal \
154+ --filter "Category=Integration&Category=RequiresLocalStack"
155+ working-directory : ' ${{ env.working-directory }}'
156+ env :
157+ AWS_ACCESS_KEY_ID : test
158+ AWS_SECRET_ACCESS_KEY : test
159+ AWS_DEFAULT_REGION : us-east-1
160+ AWS_ENDPOINT_URL : http://localhost:4566
161+
153162 - name : Step-10 Create NuGet Package (Pre-release)
154163 if : ${{ env.is-release != 'true' }}
155164 run : dotnet pack --configuration Release --no-build --output ./packages -p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersion }}
0 commit comments