Skip to content

Commit

Permalink
Add CodeQL maven package caching (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy authored Nov 4, 2023
1 parent 07634ea commit 787f500
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,18 @@ jobs:
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Cache maven packages
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: |
~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
# Build maven in batch mode, updating snapshots, showing version and errors, skipping tests
- name: Build with Maven
run: mvn --batch-mode verify
run: mvn --batch-mode --update-snapshots -e -V clean install -DskipTests

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand Down

0 comments on commit 787f500

Please sign in to comment.