Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit db02565

Browse files
feat: use gradle cache
1 parent 202c367 commit db02565

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,23 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020

21+
- name: Cache gradle
22+
uses: actions/cache@v2
23+
with:
24+
path: |
25+
~/.gradle/caches
26+
~/.gradle/wrapper
27+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
28+
restore-keys: |
29+
${{ runner.os }}-gradle-
30+
2131
- name: Setup Java 11
2232
uses: joschi/setup-jdk@v2
2333
with:
2434
java-version: '11'
2535

2636
- name: Compile
27-
run: ./gradlew classes
37+
run: ./gradlew version classes
2838

2939
- name: Test
3040
run: ./gradlew test

0 commit comments

Comments
 (0)