Skip to content

Create action to validate nuget package build in Lambda docker enviro… #1

Create action to validate nuget package build in Lambda docker enviro…

Create action to validate nuget package build in Lambda docker enviro… #1

name: Validate Nuget Package Docker Build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:

Check failure on line 8 in .github/workflows/sample-app-docker-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sample-app-docker-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
cache: true
- run: dotnet tool install -g Amazon.Lambda.Tools
- name: Build and package lambda
working-directory: ./sample/SampleLambda
run: dotnet lambda package SampleLambda
- name: Run docker
run: docker run --rm -p 9000:8080 samplelambda:latest --detach
- name: Test function
run: curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'