Skip to content

Commit a3ac20f

Browse files
author
Davide Melfi
committed
ci: 🚚 Github Actions improvements
1 parent af730be commit a3ac20f

10 files changed

Lines changed: 19 additions & 11 deletions

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
with:
3030
java-version: 8
3131
distribution: corretto
32-
33-
# Install base module
32+
cache: maven
33+
3434
- name: Install core with Maven
3535
run: mvn -B install --file aws-lambda-java-core/pom.xml
3636

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
java-version: 8
3131
distribution: corretto
32+
cache: maven
3233

3334
# Install base module
3435
- name: Install events with Maven

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
with:
3030
java-version: 8
3131
distribution: corretto
32-
33-
# Install base module
32+
cache: maven
33+
3434
- name: Install events with Maven
3535
run: mvn -B install --file aws-lambda-java-events/pom.xml
3636

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
with:
3030
java-version: 8
3131
distribution: corretto
32-
33-
# Install base module
32+
cache: maven
33+
34+
# Install dependency
3435
- name: Install core with Maven
3536
run: mvn -B install --file aws-lambda-java-core/pom.xml
3637
# Package target module

.github/workflows/aws-lambda-java-profiler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
java-version: 21
3131
distribution: corretto
32+
cache: maven
3233

3334
- name: Issue AWS credentials
3435
uses: aws-actions/configure-aws-credentials@v4

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
with:
3030
java-version: 8
3131
distribution: corretto
32-
33-
# Install base module
32+
cache: maven
33+
34+
# Install dependency
3435
- name: Install events with Maven
3536
run: mvn -B install --file aws-lambda-java-events/pom.xml
3637

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636
with:
3737
java-version: 8
3838
distribution: corretto
39-
40-
# Install base module
39+
cache: maven
40+
41+
# Install dependencies
4142
- name: Install events with Maven
4243
run: mvn -B install --file aws-lambda-java-events/pom.xml
4344
- name: Install serialization with Maven

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
with:
3636
java-version: 8
3737
distribution: corretto
38+
cache: maven
3839

3940
- name: Set up QEMU
4041
uses: docker/setup-qemu-action@v3

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
with:
2626
java-version: 8
2727
distribution: corretto
28-
28+
cache: maven
29+
2930
- name: Build and install core dependency locally
3031
working-directory: ./aws-lambda-java-core
3132
run: mvn clean install

.github/workflows/samples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
with:
2828
java-version: 8
2929
distribution: corretto
30+
cache: maven
3031

3132
# Install events module
3233
- name: Install events with Maven

0 commit comments

Comments
 (0)