From 5fe636c2816a0e6f8d7611030ee67e8e1d342237 Mon Sep 17 00:00:00 2001 From: Lei Wang <66336933+wangzlei@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:40:02 -0700 Subject: [PATCH] Adding PR build for Lambda (#262) *Issue #, if available:* *Description of changes:* Adding build and unit test for Lambda layer into PR build workflow By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --- .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