Update actions

This commit is contained in:
Jason Penilla 2022-11-23 14:13:23 -07:00 committed by Jason
parent 025dc974ad
commit 1860973a69

View file

@ -12,20 +12,22 @@ jobs:
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
- uses: gradle/gradle-build-action@v2
# gradle-build-action doesn't support caching files in the project dir
- uses: actions/cache@v3
with:
path: |
.gradle/loom-cache
.gradle/caches/VanillaGradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Build
run: ./gradlew build
- name : Test Summary