build: update Gradle setup in CI workflow file
This commit is contained in:
parent
c111b33b7d
commit
92fcda433b
@ -12,16 +12,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- uses: actions/cache@v3
|
- name: Setup Gradle
|
||||||
with:
|
uses: gradle/gradle-build-action@v2
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: "Prepare Gradle"
|
|
||||||
run: gradle clean
|
|
||||||
- name: "Check"
|
- name: "Check"
|
||||||
run: gradle testClasses
|
run: gradle testClasses
|
||||||
- name: "Stop Gradle"
|
- name: "Stop Gradle"
|
||||||
@ -34,16 +26,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- uses: actions/cache@v3
|
- name: Setup Gradle
|
||||||
with:
|
uses: gradle/gradle-build-action@v2
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: "Prepare Gradle"
|
|
||||||
run: gradle clean
|
|
||||||
- name: "Check"
|
- name: "Check"
|
||||||
run: gradle check
|
run: gradle check
|
||||||
- name: "Stop Gradle"
|
- name: "Stop Gradle"
|
||||||
|
Loading…
Reference in New Issue
Block a user