Skip to content

Commit

Permalink
Use maven cachen when running analyze job (java-native-access#129)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
normanmaurer authored Dec 23, 2020
1 parent 96feb55 commit c3d8253
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

# Cache .m2/repository
- uses: actions/cache@v2
env:
cache-name: ${{ matrix.language }}-cache-m2-repository
with:
path: ~/.m2/repository
key: ${{ runner.os }}-analyze-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-analyze-${{ env.cache-name }}-
${{ runner.os }}-analyze-
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
Expand Down

0 comments on commit c3d8253

Please sign in to comment.