Skip to content

Commit

Permalink
chore(ci): Use setup-java's Gradle cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
nstdio committed Sep 25, 2021
1 parent c11380c commit cac390a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
cache: 'gradle'
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build
run: ./gradlew build --stacktrace
- name: Analyze
Expand Down

0 comments on commit cac390a

Please sign in to comment.