Use actions/cache@v2.1.3 to cache local maven repo.
@@ -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
+ env:
+ BROWSER: chrome-container
+ run: mvn -V -ntp clean verify --file pom.xml '-Djenkins.test.timeout=5000' '-Dgpg.skip'
