diff --git a/.github/workflows/maven.yml b/.github/workflows/dependencies_check.yml similarity index 57% rename from .github/workflows/maven.yml rename to .github/workflows/dependencies_check.yml index 11c1b0982..a757a6590 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/dependencies_check.yml @@ -1,21 +1,25 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - name: Dependencies Check on: schedule: - - cron: "0 2 * * *" + - cron: "0 2 * * *" jobs: build: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v2 - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Checking dependencies for vulnerabilities run: mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:audit -f pom.xml