From 06e38ac759408f5dc17c492204e44c35a87a203b Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Mon, 8 Feb 2021 10:14:43 +0100 Subject: [PATCH] Use actions/cache@v2.1.3 to cache local maven repo. --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7db9fb..cdfbf12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,5 +22,14 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 + - name: Cache local Maven repository + uses: actions/cache@v2.1.3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Build with Maven - run: mvn -V -ntp clean verify --file pom.xml '-Djenkins.test.timeout=5000' + env: + BROWSER: chrome-container + run: mvn -V -ntp clean verify --file pom.xml '-Djenkins.test.timeout=5000' '-Dgpg.skip'