diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b0adfd4f..8f109bc4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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