mirror of https://github.com/halo-dev/halo
Enable github action cache for CI
parent
acc8ec44d2
commit
73bea52f68
|
@ -1,4 +1,4 @@
|
||||||
name: Java CI
|
name: Halo CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -15,6 +15,14 @@ jobs:
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
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
|
- name: Test with Gradle
|
||||||
run: ./gradlew test
|
run: ./gradlew test
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
|
|
Loading…
Reference in New Issue