Skip to content

Commit

Permalink
Add maven caching to GrapQL analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
juanluisrp committed Dec 20, 2021
1 parent 4057933 commit a51cd5e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ jobs:
# The package type (jdk, jre, jdk+fx, jre+fx)
java-package: jdk
cache: maven

- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Initializes the CodeQL tools for scanning.
Expand Down Expand Up @@ -79,3 +87,10 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}
- name: Remove Schema 3.8 jars from repository
run: |
find ~/.m2/repository -name "*3.8*" -type d | xargs rm -rf {}

0 comments on commit a51cd5e

Please sign in to comment.