From 9fd7bfe07958e94b97aa21d9db1943e4bc3f29b4 Mon Sep 17 00:00:00 2001 From: Lei Wang <66336933+wangzlei@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:47:12 -0700 Subject: [PATCH] Adding PR build for Lambda --- .github/workflows/pr_build.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build.yml index d1aaaffd0..965fc9caf 100644 --- a/.github/workflows/pr_build.yml +++ b/.github/workflows/pr_build.yml @@ -36,6 +36,25 @@ jobs: pip install pytest pytest contract-tests/tests + build-lambda: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + if: ${{ matrix.language == 'python' }} + with: + python-version: '3.x' + - name: Build sample lambda function + working-directory: lambda-layer/sample-apps + run: ./package-lambda-function.sh + - name: Build layers + working-directory: lambda-layer/src + run: | + ./build-lambda-layer.sh + pip install tox + tox + lint: runs-on: ubuntu-latest strategy: @@ -80,4 +99,4 @@ jobs: uses: gradle/gradle-build-action@v3 - name: Build with Gradle - run: cd performance-tests; ./gradlew spotlessCheck \ No newline at end of file + run: cd performance-tests; ./gradlew spotlessCheck