Skip to content

Commit

Permalink
cache gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
MocStepan committed May 9, 2024
1 parent 6ef91bf commit 301b229
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,14 @@ jobs:
with:
java-version: 17
distribution: temurin

- name: setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
cache: gradle
cache-dependency-path: |
backend/*.gradle*
backend/**/gradle-wrapper.properties
- name: Build backend with Gradle Wrapper
run: ./gradlew build -x test

- name: Cache Gradle dependencies
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-

backend-test:
name: Test backend
runs-on: ubuntu-latest
Expand Down

0 comments on commit 301b229

Please sign in to comment.