add cache

This commit is contained in:
Shinsuke Sugaya 2020-03-05 09:39:54 +09:00
parent 262bca2f7a
commit 867e276a8a

View file

@ -1,13 +1,6 @@
# 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: Fess with Maven
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]
jobs:
build:
@ -20,6 +13,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up Fess
run: mvn antrun:run
- name: Build Fess
@ -29,4 +28,3 @@ jobs:
- name: Run Integration Test
run: bash .travis/run.sh