From 0ea75eb37ab98781e92223f1f6aed9ec4ebdeaea Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Fri, 23 Aug 2019 14:46:55 +0200 Subject: [PATCH 01/20] update gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b8e9a4e..29cc3eb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /.build /Packages /*.xcodeproj +/.swiftpm lambda.zip swift-shared-libs -swift-lambda-runtime.zip \ No newline at end of file +swift-lambda-runtime.zip From d6e6480044eeeb656a06207b496850ef02d1c452 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 12:04:09 +0200 Subject: [PATCH 02/20] added files for integration tests with sam --- .github/workflow/ci.yaml | 9 +++++++++ Makefile | 13 +++++++++++-- template.yaml | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 .github/workflow/ci.yaml create mode 100644 template.yaml diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml new file mode 100644 index 0000000..941f8e0 --- /dev/null +++ b/.github/workflow/ci.yaml @@ -0,0 +1,9 @@ +# Trigger on push +on: push + +jobs: + test: + name: "Test layer" + steps: + - name: Create layer and run single example lambda + - run: make test_layer diff --git a/Makefile b/Makefile index 9367b83..7fbc673 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,9 @@ EXAMPLE_PROJECT_PATH=Examples/SquareNumber # EXAMPLE_EXECUTABLE=RESTCountries # EXAMPLE_PROJECT_PATH=Examples/RESTCountries LAMBDA_ZIP=lambda.zip -SHARED_LIBS_FOLDER=swift-shared-libs +LAYER_FOLDER=swift-lambda-runtime LAYER_ZIP=swift-lambda-runtime.zip +SHARED_LIBS_FOLDER=$(LAYER_FOLDER)/swift-shared-libs SWIFT_DOCKER_IMAGE=swift:5.0 clean_lambda: @@ -34,8 +35,11 @@ clean_layer: rm $(LAYER_ZIP) || true rm -r $(SHARED_LIBS_FOLDER) || true -package_layer: clean_layer +create_layer: clean_layer + mkdir -p $(LAYER_FOLDER) mkdir -p $(SHARED_LIBS_FOLDER)/lib + cp ./bootstrap "$(LAYER_FOLDER)/bootstrap" + chmod 755 "$(LAYER_FOLDER)/bootstrap" docker run \ --rm \ --volume "$(shell pwd)/:/src" \ @@ -109,4 +113,9 @@ package_layer: clean_layer /usr/lib/x86_64-linux-gnu/libunistring.so.2 \ /usr/lib/x86_64-linux-gnu/libwind.so.0 \ /usr/lib/x86_64-linux-gnu/libxml2.so.2 + +test_layer: create_layer package_lambda + echo '{"number": 9 }' | sam local invoke --force-image-build -v . "SquareNumberFunction" + +package_layer: create_layer zip -r $(LAYER_ZIP) bootstrap $(SHARED_LIBS_FOLDER) diff --git a/template.yaml b/template.yaml new file mode 100644 index 0000000..ac2b031 --- /dev/null +++ b/template.yaml @@ -0,0 +1,37 @@ +AWSTemplateFormatVersion: '2010-09-09' +Transform: AWS::Serverless-2016-10-31 +Description: > + sam-app + + Sample SAM Template for sam-app + +# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst +Globals: + Function: + Timeout: 3 + +Resources: + + SwiftLayer: + Type: AWS::Serverless::LayerVersion + Properties: + ContentUri: swift-lambda-runtime/ + # ContentUri: + # Bucket: de.fabianfett.denkan.app.sam + # Key: swift-lambda-runtime.zip + + SquareNumberFunction: + Type: AWS::Serverless::Function + Properties: + CodeUri: lambda.zip + Handler: "SquareNumber.squareNumber" + Runtime: provided + Layers: + - !Ref SwiftLayer + Events: + HelloWorld: + Type: Api + Properties: + Path: /hello + Method: get + From 552e1473f0853a21dab4f5a0ab7e238256d4359d Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 12:07:08 +0200 Subject: [PATCH 03/20] Run on push and pull_request --- .github/workflow/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml index 941f8e0..fc49311 100644 --- a/.github/workflow/ci.yaml +++ b/.github/workflow/ci.yaml @@ -1,5 +1,7 @@ # Trigger on push -on: push +on: +- push +- pull_request jobs: test: From e2794029f58820432ad562f98534ad8750ae291e Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 13:00:46 +0200 Subject: [PATCH 04/20] build?! --- .github/workflow/ci.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml index fc49311..745f982 100644 --- a/.github/workflow/ci.yaml +++ b/.github/workflow/ci.yaml @@ -1,10 +1,9 @@ # Trigger on push -on: -- push -- pull_request +on: [push, pull_request] jobs: test: + runs-on: macOS-10.14 name: "Test layer" steps: - name: Create layer and run single example lambda From edc2c6c68af20b1428b5d23b95bb19092a811aa8 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:27:46 +0200 Subject: [PATCH 05/20] correct path --- .github/{workflow => workflows}/ci.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflow => workflows}/ci.yaml (100%) diff --git a/.github/workflow/ci.yaml b/.github/workflows/ci.yaml similarity index 100% rename from .github/workflow/ci.yaml rename to .github/workflows/ci.yaml From fc1f6b1fee5fe2551e28e9405f031f926d7ee59a Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:31:41 +0200 Subject: [PATCH 06/20] fix ci file --- .github/workflow/ci.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflow/ci.yaml diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml new file mode 100644 index 0000000..a1f684d --- /dev/null +++ b/.github/workflow/ci.yaml @@ -0,0 +1,10 @@ +# Trigger on push +on: [pull_request] + +jobs: + test: + runs-on: ubuntu-18.04 + name: "Test layer" + steps: + - name: "Create layer and run single example lambda" + run: make test_layer From e550fffb1274188fab31cbcb1e621a73794eb53a Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:34:26 +0200 Subject: [PATCH 07/20] and new try --- .github/workflow/ci.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml index a1f684d..d81f6e9 100644 --- a/.github/workflow/ci.yaml +++ b/.github/workflow/ci.yaml @@ -6,5 +6,9 @@ jobs: runs-on: ubuntu-18.04 name: "Test layer" steps: - - name: "Create layer and run single example lambda" - run: make test_layer + - name: Checkout + uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Build & test layer + run: make test_layer From a7e8e8a9994b8efa82c27fe61b3365c8b0b5b0f9 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:35:58 +0200 Subject: [PATCH 08/20] argh --- .github/workflow/ci.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml index d81f6e9..04ab6ab 100644 --- a/.github/workflow/ci.yaml +++ b/.github/workflow/ci.yaml @@ -4,7 +4,6 @@ on: [pull_request] jobs: test: runs-on: ubuntu-18.04 - name: "Test layer" steps: - name: Checkout uses: actions/checkout@v1 From 4a93f9403ac0d448715a8e799fa170b74ce296a4 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:37:56 +0200 Subject: [PATCH 09/20] new try --- .github/workflow/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml index 04ab6ab..d2d5070 100644 --- a/.github/workflow/ci.yaml +++ b/.github/workflow/ci.yaml @@ -1,5 +1,8 @@ # Trigger on push -on: [pull_request] +on: + pull_request: + paths: + - './*' jobs: test: From d42ec4b9c09cdcfe89247147e43ff421948bd70c Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:42:42 +0200 Subject: [PATCH 10/20] und nochmal! --- .github/workflow/ci.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml index d2d5070..400e2ec 100644 --- a/.github/workflow/ci.yaml +++ b/.github/workflow/ci.yaml @@ -1,8 +1,5 @@ -# Trigger on push -on: - pull_request: - paths: - - './*' +name: CI +on: [push, pull_request] jobs: test: From 94bb54e0ddec2b3c91805cbf8985c4eee2ce9440 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:44:32 +0200 Subject: [PATCH 11/20] und nochmal --- .github/workflow/ci.yaml | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml index 400e2ec..9df0ab9 100644 --- a/.github/workflow/ci.yaml +++ b/.github/workflow/ci.yaml @@ -1,13 +1,30 @@ name: CI on: [push, pull_request] - jobs: - test: + build: + runs-on: ubuntu-18.04 + steps: - - name: Checkout - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - name: Build & test layer - run: make test_layer + - uses: actions/checkout@v1 + - name: Run a one-line script + run: echo Hello, world! + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. + + +# name: CI +# on: [push, pull_request] + +# jobs: +# test: +# runs-on: ubuntu-18.04 +# steps: +# - name: Checkout +# uses: actions/checkout@v1 +# with: +# fetch-depth: 1 +# - name: Build & test layer +# run: make test_layer From 60aa26529c3544c15f5efd992047ae430c98a362 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:45:54 +0200 Subject: [PATCH 12/20] argh! me so stupid! --- .github/workflow/ci.yaml | 30 ------------------------------ .github/workflows/ci.yaml | 13 ++++++++----- 2 files changed, 8 insertions(+), 35 deletions(-) delete mode 100644 .github/workflow/ci.yaml diff --git a/.github/workflow/ci.yaml b/.github/workflow/ci.yaml deleted file mode 100644 index 9df0ab9..0000000 --- a/.github/workflow/ci.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: CI -on: [push, pull_request] -jobs: - build: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - name: Run a one-line script - run: echo Hello, world! - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. - - -# name: CI -# on: [push, pull_request] - -# jobs: -# test: -# runs-on: ubuntu-18.04 -# steps: -# - name: Checkout -# uses: actions/checkout@v1 -# with: -# fetch-depth: 1 -# - name: Build & test layer -# run: make test_layer diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 745f982..400e2ec 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,10 +1,13 @@ -# Trigger on push +name: CI on: [push, pull_request] jobs: test: - runs-on: macOS-10.14 - name: "Test layer" + runs-on: ubuntu-18.04 steps: - - name: Create layer and run single example lambda - - run: make test_layer + - name: Checkout + uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Build & test layer + run: make test_layer From 661d1a6017fdd85ab1b5e53dbd85e1f492c0da6c Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 14:52:03 +0200 Subject: [PATCH 13/20] build better? --- .github/workflows/ci.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 400e2ec..2d01935 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,5 +9,9 @@ jobs: uses: actions/checkout@v1 with: fetch-depth: 1 - - name: Build & test layer - run: make test_layer + - name: Build local layer + run: make create_layer + - name: Build local and package local lambda + run: make package_lambda + - name: Run show local files + run: ls -n ./examples/SquareNumber/ \ No newline at end of file From b2ae5ab7c47ad102bcc5e9e5c9e6ed2a825c5923 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 15:02:21 +0200 Subject: [PATCH 14/20] fixes?! --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7fbc673..8a9e3c7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ EXAMPLE_LAMBDA=SquareNumber EXAMPLE_EXECUTABLE=SquareNumber EXAMPLE_PROJECT_PATH=Examples/SquareNumber + # EXAMPLE_LAMBDA=SyntaxHighlighter # EXAMPLE_EXECUTABLE=SyntaxHighlighter # EXAMPLE_PROJECT_PATH=Examples/SyntaxHighlighter @@ -13,6 +14,19 @@ LAYER_ZIP=swift-lambda-runtime.zip SHARED_LIBS_FOLDER=$(LAYER_FOLDER)/swift-shared-libs SWIFT_DOCKER_IMAGE=swift:5.0 +# System specific configuration + +UNAME_S := $(shell uname -s) + + +ifeq ($(UNAME_S),Darwin) + EXAMPLE_EXECUTABLE_PATH=$(EXAMPLE_PROJECT_PATH)/.build/debug/$(EXAMPLE_EXECUTABLE) +else + EXAMPLE_EXECUTABLE_PATH=$(EXAMPLE_PROJECT_PATH)/.build/x86_64-unknown-linux/debug/$(EXAMPLE_EXECUTABLE) +endif + + + clean_lambda: rm $(LAMBDA_ZIP) || true rm -rf $(EXAMPLE_PROJECT_PATH)/.build || true @@ -26,7 +40,7 @@ build_lambda: swift build package_lambda: clean_lambda build_lambda - zip -r -j $(LAMBDA_ZIP) $(EXAMPLE_PROJECT_PATH)/.build/debug/$(EXAMPLE_EXECUTABLE) + zip -r -j $(LAMBDA_ZIP) $(EXAMPLE_PROJECT_PATH)/.build/debug/x86_64-unknown-linux/$(EXAMPLE_EXECUTABLE) deploy_lambda: package_lambda aws lambda update-function-code --function-name $(EXAMPLE_LAMBDA) --zip-file fileb://lambda.zip @@ -114,7 +128,7 @@ create_layer: clean_layer /usr/lib/x86_64-linux-gnu/libwind.so.0 \ /usr/lib/x86_64-linux-gnu/libxml2.so.2 -test_layer: create_layer package_lambda +test_layer: package_lambda echo '{"number": 9 }' | sam local invoke --force-image-build -v . "SquareNumberFunction" package_layer: create_layer From 7dd6330b4be491637e0fcdcc3a0ce10c9e119472 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 15:13:12 +0200 Subject: [PATCH 15/20] new try --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2d01935..432e662 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,8 @@ jobs: - name: Build local layer run: make create_layer - name: Build local and package local lambda - run: make package_lambda + run: make build_lambda - name: Run show local files - run: ls -n ./examples/SquareNumber/ \ No newline at end of file + run: ls -n ./Examples/SquareNumber/ + - name: Run show local files + run: ls -n ./Examples/SquareNumber/.build \ No newline at end of file From 30f61e819a08a78263af3c2188a9bb9ba45801e0 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 15:24:22 +0200 Subject: [PATCH 16/20] new try! --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 432e662..ac9d988 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,4 +16,4 @@ jobs: - name: Run show local files run: ls -n ./Examples/SquareNumber/ - name: Run show local files - run: ls -n ./Examples/SquareNumber/.build \ No newline at end of file + run: ls -n . \ No newline at end of file From 1382d5caeb2091a3a8761550a64409a0b52049be Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 15:29:46 +0200 Subject: [PATCH 17/20] neuer anlauf? --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8a9e3c7..74c4877 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ build_lambda: --volume "$(shell pwd)/:/src" \ --workdir "/src/$(EXAMPLE_PROJECT_PATH)" \ $(SWIFT_DOCKER_IMAGE) \ - swift build + swift build && ln -n . package_lambda: clean_lambda build_lambda zip -r -j $(LAMBDA_ZIP) $(EXAMPLE_PROJECT_PATH)/.build/debug/x86_64-unknown-linux/$(EXAMPLE_EXECUTABLE) From e12146370a8d2460c4a58815a9b4932ed95d41fe Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 15:38:37 +0200 Subject: [PATCH 18/20] and again --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 74c4877..29a1886 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ build_lambda: --volume "$(shell pwd)/:/src" \ --workdir "/src/$(EXAMPLE_PROJECT_PATH)" \ $(SWIFT_DOCKER_IMAGE) \ - swift build && ln -n . + swift build && ls -n . package_lambda: clean_lambda build_lambda zip -r -j $(LAMBDA_ZIP) $(EXAMPLE_PROJECT_PATH)/.build/debug/x86_64-unknown-linux/$(EXAMPLE_EXECUTABLE) From 191775dbe243af607a00dbc62e5a5692208ec8a2 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 29 Aug 2019 15:52:07 +0200 Subject: [PATCH 19/20] more info? --- .github/workflows/ci.yaml | 6 +++--- Makefile | 13 ++----------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ac9d988..eb0d14f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,6 +14,6 @@ jobs: - name: Build local and package local lambda run: make build_lambda - name: Run show local files - run: ls -n ./Examples/SquareNumber/ - - name: Run show local files - run: ls -n . \ No newline at end of file + run: ls -an ./Examples/SquareNumber/ + - name: Package local lambda + run: make package_lambda \ No newline at end of file diff --git a/Makefile b/Makefile index 29a1886..f621d12 100644 --- a/Makefile +++ b/Makefile @@ -18,15 +18,6 @@ SWIFT_DOCKER_IMAGE=swift:5.0 UNAME_S := $(shell uname -s) - -ifeq ($(UNAME_S),Darwin) - EXAMPLE_EXECUTABLE_PATH=$(EXAMPLE_PROJECT_PATH)/.build/debug/$(EXAMPLE_EXECUTABLE) -else - EXAMPLE_EXECUTABLE_PATH=$(EXAMPLE_PROJECT_PATH)/.build/x86_64-unknown-linux/debug/$(EXAMPLE_EXECUTABLE) -endif - - - clean_lambda: rm $(LAMBDA_ZIP) || true rm -rf $(EXAMPLE_PROJECT_PATH)/.build || true @@ -37,10 +28,10 @@ build_lambda: --volume "$(shell pwd)/:/src" \ --workdir "/src/$(EXAMPLE_PROJECT_PATH)" \ $(SWIFT_DOCKER_IMAGE) \ - swift build && ls -n . + swift build package_lambda: clean_lambda build_lambda - zip -r -j $(LAMBDA_ZIP) $(EXAMPLE_PROJECT_PATH)/.build/debug/x86_64-unknown-linux/$(EXAMPLE_EXECUTABLE) + zip -r -j $(LAMBDA_ZIP) $(EXAMPLE_PROJECT_PATH)/.build/debug/$(EXAMPLE_EXECUTABLE) deploy_lambda: package_lambda aws lambda update-function-code --function-name $(EXAMPLE_LAMBDA) --zip-file fileb://lambda.zip From 0502b74aef4351ca423feb59632e601c825b707f Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Tue, 29 Oct 2019 15:24:45 +0100 Subject: [PATCH 20/20] test layer install sam install aws sam install sam with sudo run sam cli run for pull_requests into master and on master go again. and again! with sudo test again added another file to gitignore another fix --- .github/workflows/ci.yaml | 34 +++++++++++++++++++++++++++------- .gitignore | 2 +- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eb0d14f..712a5a6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,5 +1,11 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: test: @@ -9,11 +15,25 @@ jobs: uses: actions/checkout@v1 with: fetch-depth: 1 + - name: Install ruby + uses: actions/setup-ruby@v1 + - name: Install aws-sam-cli + run: sudo pip install aws-sam-cli + # - name: Install aws sam cli + # run: | + # sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" + # brew --version + # sudo brew tap aws/tap + # brew install aws-sam-cli + # sam --version - name: Build local layer run: make create_layer - - name: Build local and package local lambda - run: make build_lambda - - name: Run show local files - run: ls -an ./Examples/SquareNumber/ - - name: Package local lambda - run: make package_lambda \ No newline at end of file + # - name: Build local and package local lambda + # run: make build_lambda + # - name: Run show local files + # run: ls -an ./Examples/SquareNumber/ + # - name: Package local lambda + # run: make package_lambda + - name: test local lambda + run: make test_layer + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 29cc3eb..94f375a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ /*.xcodeproj /.swiftpm lambda.zip -swift-shared-libs +swift-lambda-runtime swift-lambda-runtime.zip