Skip to content

Commit

Permalink
Adding PR build for Lambda (#262)
Browse files Browse the repository at this point in the history
*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.
  • Loading branch information
wangzlei authored Sep 27, 2024
1 parent 41e0987 commit 5fe636c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -80,4 +99,4 @@ jobs:
uses: gradle/gradle-build-action@v3

- name: Build with Gradle
run: cd performance-tests; ./gradlew spotlessCheck
run: cd performance-tests; ./gradlew spotlessCheck

0 comments on commit 5fe636c

Please sign in to comment.