Skip to content

Commit e8852a0

Browse files
authored
Merge branch 'main' into develop
2 parents 0149926 + dc6e7f6 commit e8852a0

127 files changed

Lines changed: 3510 additions & 911 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/aws-lambda-java-core.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up JDK 1.8
2525
uses: actions/setup-java@v4
2626
with:

‎.github/workflows/aws-lambda-java-events-sdk-transformer.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up JDK 1.8
2525
uses: actions/setup-java@v4
2626
with:

‎.github/workflows/aws-lambda-java-events.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up JDK 1.8
2525
uses: actions/setup-java@v4
2626
with:

‎.github/workflows/aws-lambda-java-log4j2.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up JDK 1.8
2525
uses: actions/setup-java@v4
2626
with:

‎.github/workflows/aws-lambda-java-serialization.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up JDK 1.8
2525
uses: actions/setup-java@v4
2626
with:

‎.github/workflows/aws-lambda-java-tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up JDK 1.8
2525
uses: actions/setup-java@v4
2626
with:

‎.github/workflows/repo-sync.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
env:
1717
IS_CONFIGURED: ${{ secrets.SOURCE_REPO != '' }}
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
if: ${{ env.IS_CONFIGURED == 'true' }}
2121
- uses: repo-sync/github-sync@v2
2222
name: Sync repo to branch

‎.github/workflows/runtime-interface-client_merge_to_main.yml‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
branches: [ main ]
1616
paths:
1717
- 'aws-lambda-java-runtime-interface-client/**'
18+
- '.github/workflows/runtime-interface-client_*.yml'
1819
workflow_dispatch:
1920

2021
jobs:
@@ -27,7 +28,7 @@ jobs:
2728
contents: read
2829

2930
steps:
30-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3132

3233
- name: Set up JDK 1.8
3334
uses: actions/setup-java@v4
@@ -39,7 +40,7 @@ jobs:
3940
uses: docker/setup-qemu-action@v3
4041

4142
- name: Set up Docker Buildx
42-
uses: docker/setup-buildx-action@v2
43+
uses: docker/setup-buildx-action@v3
4344
with:
4445
install: true
4546

@@ -53,6 +54,9 @@ jobs:
5354
IS_JAVA_8: true
5455

5556
- name: Issue AWS credentials
57+
if: env.ENABLE_SNAPSHOT != null
58+
env:
59+
ENABLE_SNAPSHOT: ${{ secrets.ENABLE_SNAPSHOT }}
5660
uses: aws-actions/configure-aws-credentials@v4
5761
with:
5862
aws-region: ${{ secrets.AWS_REGION }}
@@ -61,6 +65,9 @@ jobs:
6165
role-duration-seconds: 900
6266

6367
- name: Prepare codeartifact properties
68+
if: env.ENABLE_SNAPSHOT != null
69+
env:
70+
ENABLE_SNAPSHOT: ${{ secrets.ENABLE_SNAPSHOT }}
6471
working-directory: ./aws-lambda-java-runtime-interface-client/ric-dev-environment
6572
run: |
6673
cat <<EOF > codeartifact-properties.mk
@@ -71,7 +78,14 @@ jobs:
7178
EOF
7279
7380
- name: Publish
81+
if: env.ENABLE_SNAPSHOT != null
7482
working-directory: ./aws-lambda-java-runtime-interface-client
7583
env:
7684
ENABLE_SNAPSHOT: ${{ secrets.ENABLE_SNAPSHOT }}
7785
run: make publish
86+
87+
- name: Upload coverage to Codecov
88+
if: env.CODECOV_TOKEN != null
89+
uses: codecov/codecov-action@v4
90+
env:
91+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

‎.github/workflows/runtime-interface-client_pr.yml‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
branches: [ '*' ]
99
paths:
1010
- 'aws-lambda-java-runtime-interface-client/**'
11-
- '.github/workflows/runtime-interface-client_pr.yml'
11+
- '.github/workflows/runtime-interface-client_*.yml'
1212

1313
jobs:
1414

1515
smoke-test:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

2020
- name: Set up JDK 1.8
2121
uses: actions/setup-java@v4
@@ -32,7 +32,7 @@ jobs:
3232
build:
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3636

3737
- name: Set up JDK 1.8
3838
uses: actions/setup-java@v4
@@ -44,21 +44,27 @@ jobs:
4444
uses: docker/setup-qemu-action@v3
4545

4646
- name: Set up Docker Buildx
47-
uses: docker/setup-buildx-action@v2
47+
uses: docker/setup-buildx-action@v3
4848
with:
4949
install: true
5050

5151
- name: Available buildx platforms
5252
run: echo ${{ steps.buildx.outputs.platforms }}
53-
53+
5454
- name: Test Runtime Interface Client xplatform build - Run 'build' target
5555
working-directory: ./aws-lambda-java-runtime-interface-client
5656
run: make build
5757
env:
5858
IS_JAVA_8: true
59-
59+
6060
- name: Save the built jar
6161
uses: actions/upload-artifact@v4
6262
with:
6363
name: aws-lambda-java-runtime-interface-client
6464
path: ./aws-lambda-java-runtime-interface-client/target/aws-lambda-java-runtime-interface-client-*.jar
65+
66+
- name: Upload coverage to Codecov
67+
if: env.CODECOV_TOKEN != null
68+
uses: codecov/codecov-action@v4
69+
env:
70+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

‎.github/workflows/samples.yml‎

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@ on:
77
push:
88
branches: [ main ]
99
paths:
10-
- 'samples/kinesis-firehose-event-handler/**'
10+
- 'samples/**'
1111
pull_request:
1212
branches: [ '*' ]
1313
paths:
14-
- 'samples/kinesis-firehose-event-handler/**'
14+
- 'samples/**'
1515
- '.github/workflows/samples.yml'
1616

1717
jobs:
18-
build:
19-
18+
build-kinesis-sample:
2019
runs-on: ubuntu-latest
21-
2220
steps:
23-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2422
- name: Set up JDK 1.8
2523
uses: actions/setup-java@v4
2624
with:
@@ -37,3 +35,26 @@ jobs:
3735
# Install samples
3836
- name: Install Kinesis Firehose Sample with Maven
3937
run: mvn -B install --file samples/kinesis-firehose-event-handler/pom.xml
38+
39+
custom-serialization:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: actions/setup-java@v4
44+
with:
45+
java-version: 21
46+
distribution: corretto
47+
# Build custom-serialization samples
48+
- name: install sam
49+
uses: aws-actions/setup-sam@v2
50+
- name: test fastJson
51+
run: cd samples/custom-serialization/fastJson && sam build && sam local invoke -e events/event.json | grep 200
52+
- name: test gson
53+
run: cd samples/custom-serialization/gson && sam build && sam local invoke -e events/event.json | grep 200
54+
- name: test jackson-jr
55+
run: cd samples/custom-serialization/jackson-jr && sam build && sam local invoke -e events/event.json | grep 200
56+
- name: test moshi
57+
run: cd samples/custom-serialization/moshi && sam build && sam local invoke -e events/event.json | grep 200
58+
- name: test request-stream-handler
59+
run: cd samples/custom-serialization/request-stream-handler && sam build && sam local invoke -e events/event.json | grep 200
60+

0 commit comments

Comments
 (0)