Skip to content

Commit

Permalink
Use actions/cache@v2.1.3 to cache local maven repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Feb 8, 2021
1 parent 789ad68 commit b8e058a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@ jobs:
platform: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.platform }}
name: build on ${{ matrix.platform }}
name: on ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2.3.4
- name: Set up JDK 8
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'

0 comments on commit b8e058a

Please sign in to comment.