From 3b27f7c19040553d20c96e1d2eae3c74d0ee12a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:01:34 +0100 Subject: [PATCH 01/16] Initial --- .github/workflows/dependency-test.yaml | 88 ++++++++++++++++++++++++++ pom.xml | 2 + 2 files changed, 90 insertions(+) create mode 100644 .github/workflows/dependency-test.yaml diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml new file mode 100644 index 00000000..834e5e7d --- /dev/null +++ b/.github/workflows/dependency-test.yaml @@ -0,0 +1,88 @@ +name: Test SAP Cloud SDK Versions + +on: + workflow_dispatch: + schedule: + - cron: 0 22 * * * + +env: + MVN_MULTI_THREADED_ARGS: --batch-mode --no-transfer-progress --fail-at-end --show-version --threads 1C + JAVA_VERSION: 17 + +jobs: + fetch-dependency-versions: + runs-on: ubuntu-latest + outputs: + versions: ${{ steps.set-versions.outputs.versions }} + + steps: + + - name: Fetch versions from Maven Central + id: fetch-versions + run: | + # Specify the dependency coordinates + GROUP_ID="com.example" + ARTIFACT_ID="my-dependency" + + # Fetch available versions from Maven Central API + response=$(curl -s "https://search.maven.org/solrsearch/select?q=g:%22${GROUP_ID}%22+AND+a:%22${ARTIFACT_ID}%22&rows=15&core=gav&wt=json") + + # Extract and filter versions (e.g., to exclude snapshots or specific versions) + versions=$(echo "$response" | jq -r '.response.docs[].v' | grep -v -E 'SNAPSHOT|alpha|beta' | sort -V) + + # Convert the versions to a JSON array + json_versions=$(echo "$versions" | jq -R . | jq -s .) + + # Output the versions as a string that can be used in the matrix + echo "::set-output name=versions::${json_versions}" + + test-dependency-versions: + needs: fetch-dependency-versions + runs-on: ubuntu-latest + strategy: + matrix: + version: ${{ fromJson(needs.fetch-dependency-versions.outputs.versions) }} + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + + - name: "Setup java" + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: ${{ env.JAVA_VERSION }} + cache: 'maven' + + - name: "Build SDK" + run: | + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" + mvn $MVN_ARGS + + - name: "Run tests with explicit version" + run: | + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean package spring-boot:run -pl :spring-app -Dcloud-sdk.version=${{ matrix.version }} -Denforcer.skip=true" + mvn $MVN_ARGS + env: + # See "End-to-end test application instructions" on the README.md to update the secret + AICORE_SERVICE_KEY: ${{ secrets.AICORE_SERVICE_KEY }} + + - name: "Start Application Locally" + run: | + cd sample-code/spring-app + mvn spring-boot:run & + timeout=15 + while ! nc -z localhost 8080; do + sleep 1 + timeout=$((timeout - 1)) + if [ $timeout -le 0 ]; then + echo "Server did not start within 15 seconds." + exit 1 + fi + done + env: + # See "End-to-end test application instructions" on the README.md to update the secret + AICORE_SERVICE_KEY: ${{ secrets.AICORE_SERVICE_KEY }} + + - name: "Health Check" + # print response body with headers to stdout. q:body only O:print -:stdout S:headers + run: wget -qO- -S localhost:8080 diff --git a/pom.xml b/pom.xml index b6d7adc8..d9011224 100644 --- a/pom.xml +++ b/pom.xml @@ -68,6 +68,7 @@ 3.0.2 5.14.2 + false false false false @@ -213,6 +214,7 @@ 3.5.0 true + ${enforcer.skip} From 63450f45ea11d214da9444ade2fa26b2f481283b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:06:44 +0100 Subject: [PATCH 02/16] Add testability --- .github/workflows/dependency-test.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 834e5e7d..021b9f70 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -4,6 +4,14 @@ on: workflow_dispatch: schedule: - cron: 0 22 * * * + push: + branches: + - "workflow/compatibility-version" + pull_request: + branches: + - "main" + paths: + - ".github/workflows/dependency-test.yaml" env: MVN_MULTI_THREADED_ARGS: --batch-mode --no-transfer-progress --fail-at-end --show-version --threads 1C From 4c6e3bb96c8a151fed2c0628e97225f57d5e0cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:08:09 +0100 Subject: [PATCH 03/16] Fix --- .github/workflows/dependency-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 021b9f70..e21c57cf 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -29,8 +29,8 @@ jobs: id: fetch-versions run: | # Specify the dependency coordinates - GROUP_ID="com.example" - ARTIFACT_ID="my-dependency" + GROUP_ID="com.sap.cloud.sdk" + ARTIFACT_ID="sdk-bom" # Fetch available versions from Maven Central API response=$(curl -s "https://search.maven.org/solrsearch/select?q=g:%22${GROUP_ID}%22+AND+a:%22${ARTIFACT_ID}%22&rows=15&core=gav&wt=json") From 879ef64f05b6f2151cf40c98481cb68ede851ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:13:56 +0100 Subject: [PATCH 04/16] Fix --- .github/workflows/dependency-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index e21c57cf..b487fb27 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -21,7 +21,7 @@ jobs: fetch-dependency-versions: runs-on: ubuntu-latest outputs: - versions: ${{ steps.set-versions.outputs.versions }} + versions: ${{ steps.fetch-versions.outputs.versions }} steps: From 5e273a2f2f4c0526c8af297ee575346e8f56beb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:15:52 +0100 Subject: [PATCH 05/16] Fix --- .github/workflows/dependency-test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index b487fb27..91a1d159 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -41,6 +41,8 @@ jobs: # Convert the versions to a JSON array json_versions=$(echo "$versions" | jq -R . | jq -s .) + echo "JSON Versions: $json_versions" + # Output the versions as a string that can be used in the matrix echo "::set-output name=versions::${json_versions}" From 87607afe94c3b5e1ed45200de4ad6ea8158b0611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:35:22 +0100 Subject: [PATCH 06/16] Fix --- .github/workflows/dependency-test.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 91a1d159..d4ad642e 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -21,10 +21,9 @@ jobs: fetch-dependency-versions: runs-on: ubuntu-latest outputs: - versions: ${{ steps.fetch-versions.outputs.versions }} + versions: ${{ steps.fetch-versions.outputs.VERSIONS }} steps: - - name: Fetch versions from Maven Central id: fetch-versions run: | @@ -39,12 +38,12 @@ jobs: versions=$(echo "$response" | jq -r '.response.docs[].v' | grep -v -E 'SNAPSHOT|alpha|beta' | sort -V) # Convert the versions to a JSON array - json_versions=$(echo "$versions" | jq -R . | jq -s .) + json_versions=$(echo "$versions" | jq -R . | jq -s . | tr -d '\n') echo "JSON Versions: $json_versions" # Output the versions as a string that can be used in the matrix - echo "::set-output name=versions::${json_versions}" + echo "VERSIONS=${json_versions}" >> $GITHUB_OUTPUT test-dependency-versions: needs: fetch-dependency-versions From 8cb038f9aef47fd60cb4b5dd5a149ad11e0230b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:47:56 +0100 Subject: [PATCH 07/16] Fix --- .github/workflows/dependency-test.yaml | 33 ++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index d4ad642e..f85750e7 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -45,12 +45,10 @@ jobs: # Output the versions as a string that can be used in the matrix echo "VERSIONS=${json_versions}" >> $GITHUB_OUTPUT - test-dependency-versions: - needs: fetch-dependency-versions + setup-environment: runs-on: ubuntu-latest - strategy: - matrix: - version: ${{ fromJson(needs.fetch-dependency-versions.outputs.versions) }} + outputs: + cache-key: ${{ steps.cache-build.outputs.cache-hit }} steps: - name: "Checkout repository" uses: actions/checkout@v4 @@ -67,6 +65,31 @@ jobs: MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" mvn $MVN_ARGS + - name: "Cache build" + id: cache-build + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-maven- + + test-dependency-versions: + needs: [ fetch-dependency-versions, setup-environment ] + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + version: ${{ fromJson(needs.fetch-dependency-versions.outputs.versions) }} + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + + - name: "Restore build cache" + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ needs.setup-environment.outputs.cache-key }} + - name: "Run tests with explicit version" run: | MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean package spring-boot:run -pl :spring-app -Dcloud-sdk.version=${{ matrix.version }} -Denforcer.skip=true" From 0793cb66dc4ea431f302d5fdeb1cefc7023ab6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:51:51 +0100 Subject: [PATCH 08/16] Fix --- .github/workflows/dependency-test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index f85750e7..b79062d9 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -80,6 +80,7 @@ jobs: fail-fast: false matrix: version: ${{ fromJson(needs.fetch-dependency-versions.outputs.versions) }} + continue-on-error: true steps: - name: "Checkout repository" uses: actions/checkout@v4 From cd574547b9ae5cc5b03a1e21aab6ce9673842192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:54:55 +0100 Subject: [PATCH 09/16] Fix --- .github/workflows/dependency-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index b79062d9..9f6ed94d 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -93,7 +93,7 @@ jobs: - name: "Run tests with explicit version" run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean package spring-boot:run -pl :spring-app -Dcloud-sdk.version=${{ matrix.version }} -Denforcer.skip=true" + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean package -pl :spring-app -DskipTests=false -Dcloud-sdk.version=${{ matrix.version }} -Denforcer.skip=true" mvn $MVN_ARGS env: # See "End-to-end test application instructions" on the README.md to update the secret From 1073c48ea90a4b4c4d9f6b71d6f4d301801618dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 18:00:41 +0100 Subject: [PATCH 10/16] Fix --- .github/workflows/dependency-test.yaml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 9f6ed94d..83fef296 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -48,7 +48,7 @@ jobs: setup-environment: runs-on: ubuntu-latest outputs: - cache-key: ${{ steps.cache-build.outputs.cache-hit }} + cache-key: ${{ steps.cache-build.outputs.cache-key }} steps: - name: "Checkout repository" uses: actions/checkout@v4 @@ -60,18 +60,21 @@ jobs: java-version: ${{ env.JAVA_VERSION }} cache: 'maven' - - name: "Build SDK" - run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" - mvn $MVN_ARGS - - name: "Cache build" id: cache-build uses: actions/cache@v3 with: - path: ~/.m2/repository + path: | + ~/.m2/repository + target key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-maven- + restore-keys: | + ${{ runner.os }}-maven- + + - name: "Build SDK" + run: | + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" + mvn $MVN_ARGS test-dependency-versions: needs: [ fetch-dependency-versions, setup-environment ] @@ -88,8 +91,10 @@ jobs: - name: "Restore build cache" uses: actions/cache@v3 with: - path: ~/.m2/repository - key: ${{ needs.setup-environment.outputs.cache-key }} + path: | + ~/.m2/repository + target + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - name: "Run tests with explicit version" run: | From 2e06471b36bdddce220d74da38bd297e4e8420fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 18:10:39 +0100 Subject: [PATCH 11/16] Fix --- .github/workflows/dependency-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 83fef296..e5721785 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -73,7 +73,7 @@ jobs: - name: "Build SDK" run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting -pl '!:spring-app'" mvn $MVN_ARGS test-dependency-versions: @@ -98,7 +98,7 @@ jobs: - name: "Run tests with explicit version" run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean package -pl :spring-app -DskipTests=false -Dcloud-sdk.version=${{ matrix.version }} -Denforcer.skip=true" + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean package -pl :spring-app -DskipTests=false -DskipFormatting -Dcloud-sdk.version=${{ matrix.version }} -Denforcer.skip=true" mvn $MVN_ARGS env: # See "End-to-end test application instructions" on the README.md to update the secret From 25e82bb9cb4fd78439fda3027c6c708441b91903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 18:13:10 +0100 Subject: [PATCH 12/16] Fix --- .github/workflows/dependency-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index e5721785..deb9f02b 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -73,7 +73,7 @@ jobs: - name: "Build SDK" run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting -pl '!:spring-app'" + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting -pl -spring-app" mvn $MVN_ARGS test-dependency-versions: From 248c60d61e6ef73cb3a5f6193d5b1b36258eeb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 18:14:04 +0100 Subject: [PATCH 13/16] Fix --- .github/workflows/dependency-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index deb9f02b..1c59d0a6 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -73,7 +73,7 @@ jobs: - name: "Build SDK" run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting -pl -spring-app" + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" mvn $MVN_ARGS test-dependency-versions: From 9a483daf46385659515176f9efe1641423ba9b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 18:19:00 +0100 Subject: [PATCH 14/16] Fix --- .github/workflows/dependency-test.yaml | 2 +- pom.xml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 1c59d0a6..1998f4ce 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -73,7 +73,7 @@ jobs: - name: "Build SDK" run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting -Dspotless.skip=true" mvn $MVN_ARGS test-dependency-versions: diff --git a/pom.xml b/pom.xml index d9011224..9f3bba66 100644 --- a/pom.xml +++ b/pom.xml @@ -60,13 +60,15 @@ 3.9.2 3.26.3 2.0.16 - 2.43.0 10.20.1 2.1.3 3.5.2 6.1.14 3.0.2 5.14.2 + + 2.43.0 + false false false @@ -396,6 +398,7 @@ spotless-maven-plugin ${spotless.version} + ${spotless.skip} From 1e2d84d265fe375fd28ad8229fbcd184a907bbbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 18:24:01 +0100 Subject: [PATCH 15/16] Fix --- .github/workflows/dependency-test.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 1998f4ce..6bf164bf 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -7,11 +7,6 @@ on: push: branches: - "workflow/compatibility-version" - pull_request: - branches: - - "main" - paths: - - ".github/workflows/dependency-test.yaml" env: MVN_MULTI_THREADED_ARGS: --batch-mode --no-transfer-progress --fail-at-end --show-version --threads 1C @@ -73,7 +68,7 @@ jobs: - name: "Build SDK" run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting -Dspotless.skip=true" + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" mvn $MVN_ARGS test-dependency-versions: @@ -98,7 +93,7 @@ jobs: - name: "Run tests with explicit version" run: | - MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean package -pl :spring-app -DskipTests=false -DskipFormatting -Dcloud-sdk.version=${{ matrix.version }} -Denforcer.skip=true" + MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean package -pl :spring-app -DskipTests=false -DskipFormatting -Dcloud-sdk.version=${{ matrix.version }} -Denforcer.skip=true -Dspotless.skip=true" mvn $MVN_ARGS env: # See "End-to-end test application instructions" on the README.md to update the secret From d1025ff26ce3eb135a17a2e5eb839b73dd10a6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 18:26:45 +0100 Subject: [PATCH 16/16] Fix --- .github/workflows/dependency-test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 6bf164bf..a170bca2 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -83,6 +83,13 @@ jobs: - name: "Checkout repository" uses: actions/checkout@v4 + - name: "Setup java" + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: ${{ env.JAVA_VERSION }} + cache: 'maven' + - name: "Restore build cache" uses: actions/cache@v3 with: