Skip to content

Commit

Permalink
Use setup gradle task
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Sep 16, 2024
1 parent d795613 commit 71ca5a1
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,10 @@ jobs:
distribution: temurin
java-version: 21
cache: gradle
- name: Cache Gradle packages
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: gradle/actions/[email protected]
- name: Build
timeout-minutes: 15
run: ./gradlew check
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
- name: Publish Test Report
uses: mikepenz/[email protected]
if: always()
Expand Down

0 comments on commit 71ca5a1

Please sign in to comment.