Skip to content

Commit d466609

Browse files
tomerdyim-lee
andauthored
improve debugging example (#84)
motivation: clearer examples as we prepare to open source changes: * rename debugging example to make the name more accurate * add more information in the local debugging example * add a Shared module to show how to share code between client and server * make example more useful - use JSON for registration like flow * add docker-compose task to test examples Co-authored-by: Yim Lee <yim_lee@apple.com>
1 parent 416d1fc commit d466609

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

docker/docker-compose.1804.52.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ services:
1212
test:
1313
image: swift-aws-lambda:18.04-5.2
1414

15+
test-samples:
16+
image: swift-aws-lambda:18.04-5.2
17+
1518
shell:
1619
image: swift-aws-lambda:18.04-5.2

docker/docker-compose.1804.53.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ services:
1111
test:
1212
image: swift-aws-lambda:18.04-5.3
1313

14+
test-samples:
15+
image: swift-aws-lambda:18.04-5.3
16+
1417
shell:
1518
image: swift-aws-lambda:18.04-5.3

docker/docker-compose.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ services:
3030
<<: *common
3131
command: /bin/bash -cl "swift test --enable-test-discovery -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
3232

33+
test-samples:
34+
<<: *common
35+
command: >-
36+
/bin/bash -clx "
37+
swift build --package-path Examples/LambdaFunctions &&
38+
swift build --package-path Examples/LocalDebugging/MyLambda"
39+
3340
# util
3441

3542
shell:

0 commit comments

Comments
 (0)