Skip to content

Commit d8f6224

Browse files
committed
CI for new example structure
1 parent 54e6473 commit d8f6224

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
name: "Integration tests"
3434
examples_enabled: true
3535
matrix_linux_command: "LAMBDA_USE_LOCAL_DEPS=../.. swift build"
36-
# We pass the list of examples here, but we can't pass an array as argument
36+
# We pass the list of examples targets here, but we can't pass an array as argument
3737
# Instead, we pass a String with a valid JSON array.
3838
# The workaround is mentioned here https://github.com/orgs/community/discussions/11692
39-
examples: "[ 'APIGateway', 'APIGateway+LambdaAuthorizer', 'BackgroundTasks', 'HelloJSON', 'HelloWorld', 'ResourcesPackaging', 'S3EventNotifier', 'S3_AWSSDK', 'S3_Soto', 'Streaming', 'Testing', 'Tutorial' ]"
39+
examples: "[ 'APIGateway', 'APIGatewayLambda', 'AuthorizerLambda', 'BackgroundTasks', 'CDKAPIGAtewayLambda','HelloJSON', 'HelloWorld', 'ResourcesPackaging', 'S3EventNotifier', 'AWSSDKExample', 'SotoExample', 'StreamingNumbers', 'TestedLambda', 'Palindrome' ]"
4040
archive_plugin_examples: "[ 'HelloWorld', 'ResourcesPackaging' ]"
4141
archive_plugin_enabled: true
4242

.github/workflows/scripts/integration_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ test -n "${SWIFT_VERSION:-}" || fatal "SWIFT_VERSION unset"
2424
test -n "${COMMAND:-}" || fatal "COMMAND unset"
2525
test -n "${EXAMPLE:-}" || fatal "EXAMPLE unset"
2626

27-
pushd Examples/"$EXAMPLE" > /dev/null
27+
pushd Examples > /dev/null
2828

2929
log "Running command with Swift $SWIFT_VERSION"
30-
eval "$COMMAND"
30+
eval "$COMMAND --target $EXAMPLE"
3131

3232
popd

0 commit comments

Comments
 (0)