Skip to content

Commit 5fe636c

Browse files
authored
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.
1 parent 41e0987 commit 5fe636c

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/pr_build.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,25 @@ jobs:
3636
pip install pytest
3737
pytest contract-tests/tests
3838
39+
build-lambda:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout Repo @ SHA - ${{ github.sha }}
43+
uses: actions/checkout@v4
44+
- uses: actions/setup-python@v5
45+
if: ${{ matrix.language == 'python' }}
46+
with:
47+
python-version: '3.x'
48+
- name: Build sample lambda function
49+
working-directory: lambda-layer/sample-apps
50+
run: ./package-lambda-function.sh
51+
- name: Build layers
52+
working-directory: lambda-layer/src
53+
run: |
54+
./build-lambda-layer.sh
55+
pip install tox
56+
tox
57+
3958
lint:
4059
runs-on: ubuntu-latest
4160
strategy:
@@ -80,4 +99,4 @@ jobs:
8099
uses: gradle/gradle-build-action@v3
81100

82101
- name: Build with Gradle
83-
run: cd performance-tests; ./gradlew spotlessCheck
102+
run: cd performance-tests; ./gradlew spotlessCheck

0 commit comments

Comments
 (0)