awslabs / aws-lambda-powershell-runtime

This new PowerShell custom runtime for AWS Lambda makes it even easier to run Lambda functions written in PowerShell to process events.
Apache License 2.0
57 stars 17 forks source link

Updated build scripts to support building into a provided layer path #17

Closed austoonz closed 1 year ago

austoonz commented 1 year ago

Description of changes:

Initial work to separate layer builds into dedicated paths (per layer or example).

This simplifies development efforts as the layer or runtime files are no longer replaced, removed or modified when building each example.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

julianwood commented 1 year ago

This is a great addition!

austoonz commented 1 year ago

Output from the added pester tests:

PS> cd .\powershell-modules\AWSToolsforPowerShell\Demo-AWS.Tools\
PS> Invoke-Pester

Starting discovery in 1 files.
Discovery found 3 tests in 12ms.
Running tests.
[+] C:\Users\Administrator\Workspace\opensource\aws-lambda-powershell-runtime\powershell-modules\AWSToolsforPowerShell\Demo-AWS.Tools\tests\build-AWSToolsLayer.Tests.ps1 22.54s (22.44s|86ms)
Tests completed in 22.63s
Tests Passed: 3, Failed: 0, Skipped: 0 NotRun: 0