1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-05 15:15:44 +02:00

chore: cache .m2 directory during groovy tests (#1419)

* chore: cache .m2 directory during groovy tests

* rename workflow job
This commit is contained in:
Christopher Fenner 2020-04-17 21:29:48 +02:00 committed by GitHub
parent 171a063590
commit 46bee01ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -9,7 +9,7 @@ on:
- master
jobs:
github-pages:
Build:
runs-on: ubuntu-latest
steps:

View File

@ -12,11 +12,20 @@ jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: checkout
uses: actions/checkout@v2
- name: Cache Maven Packages
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: unit-test
run: mvn --batch-mode clean verify -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn