Use github actions cache (#1910)

This commit is contained in:
Mike Drob 2020-09-22 13:08:24 -05:00 committed by GitHub
parent 7b7a5a16ce
commit a77817a08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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