Skip to content

Bump @sparticuz/chromium from 119.0.0 to 119.0.2 #29

Bump @sparticuz/chromium from 119.0.0 to 119.0.2

Bump @sparticuz/chromium from 119.0.0 to 119.0.2 #29

name: Validate Nuget Package Docker Build
on: [pull_request]
jobs:
lambda-docker-build-dotnet:
strategy:
matrix:
version: [6, 7, 8]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.version }}.x
- run: dotnet tool install -g Amazon.Lambda.Tools
- name: Build and package nuget
uses: cake-build/cake-action@v1
with:
cake-version: 1.3.0
- name: Build and package lambda
working-directory: ./sample/SampleLambda-dotnet${{ matrix.version }}
run: dotnet lambda package SampleLambda --profile default --region us-west-1
- name: Run docker
run: docker run --detach -p 9000:8080 samplelambda-dotnet${{ matrix.version }}:latest
- name: Test function
run: \{ curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}' | tee /dev/fd/3 | if grep -q iVB ; then cat > /dev/null; true; else false; fi; } 3>&1