add cache
This commit is contained in:
parent
262bca2f7a
commit
867e276a8a
1 changed files with 8 additions and 10 deletions
18
.github/workflows/maven.yml
vendored
18
.github/workflows/maven.yml
vendored
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue