Enable github action cache for CI

pull/536/head
johnniang 2020-01-31 11:22:00 +08:00
parent acc8ec44d2
commit 73bea52f68
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
name: Java CI
name: Halo CI
on:
pull_request:
@ -15,6 +15,14 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle
id: cache-gradle
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Test with Gradle
run: ./gradlew test
- name: Build with Gradle