Skip to content

Commit 330f4e6

Browse files
committed
pr build + fail layer script fast
1 parent bd6838d commit 330f4e6

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/pr-build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,18 @@ jobs:
156156
arguments: build --stacktrace -PenableCoverage=true
157157
- uses: codecov/codecov-action@v3
158158

159+
build-lambda:
160+
runs-on: ubuntu-latest
161+
steps:
162+
- name: Checkout Repo @ SHA - ${{ github.sha }}
163+
uses: actions/checkout@v4
164+
165+
- name: Setup Java
166+
uses: actions/setup-java@v4
167+
with:
168+
java-version: 17
169+
distribution: temurin
170+
171+
- name: Build layer
172+
working-directory: lambda-layer
173+
run: ./build-layer.sh

lambda-layer/build-layer.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
SOURCEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
45

@@ -27,8 +28,6 @@ patch -p1 < "$SOURCEDIR"/../.github/patches/opentelemetry-java-instrumentation.p
2728
# This patch is for Lambda related context propagation
2829
patch -p1 < "$SOURCEDIR"/patches/opentelemetry-java-instrumentation.patch
2930

30-
git add -A
31-
git commit -m "Create patch version"
3231
./gradlew publishToMavenLocal
3332
popd
3433
rm -rf opentelemetry-java-instrumentation

0 commit comments

Comments
 (0)