mirror of https://github.com/apache/lucene.git
Use github actions cache (#1910)
This commit is contained in:
parent
7b7a5a16ce
commit
a77817a08c
|
@ -26,6 +26,14 @@ jobs:
|
|||
java-version: 11
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-docker-${{ hashFiles('versions.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-docker-
|
||||
${{ runner.os }}-gradle-
|
||||
- name: Build Docker image with Gradle
|
||||
run: ./gradlew solr:docker:docker
|
||||
- name: Run tests on Docker image
|
||||
|
|
|
@ -14,12 +14,25 @@ jobs:
|
|||
steps:
|
||||
# Setup
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
key: ${{ runner.os }}-gradle-precommit-${{ hashFiles('versions.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-precommit-
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew precommit
|
||||
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
|
|
Loading…
Reference in New Issue