Use maven cachen when running analyze job (#10888)

Motivation:

To prevent failures to problems while downloading dependencies we shoud cache these

Modifications:

Add maven cache

Result:

No more failures due problems while downloading dependencies
This commit is contained in:
Norman Maurer 2020-12-23 19:01:21 +01:00 committed by GitHub
parent c10606ef2a
commit 9145f28586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,17 @@ jobs:
# a pull request then we can checkout the head.
fetch-depth: 2
# Cache .m2/repository
- uses: actions/cache@v2
env:
cache-name: verify-cache-m2-repository
with:
path: ~/.m2/repository
key: ${{ runner.os }}-pr-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-pr-${{ env.cache-name }}-
${{ runner.os }}-pr-
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2