Migrate to gradle-build-action.

This commit is contained in:
Yang
2021-11-10 13:37:27 +11:00
parent 219361aa4a
commit 9216c92cd9
2 changed files with 5 additions and 10 deletions
+4 -9
View File
@@ -64,12 +64,6 @@ jobs:
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
java-version: 15 java-version: 15
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- uses: actions/cache@v2 - uses: actions/cache@v2
id: avd-cache id: avd-cache
with: with:
@@ -80,9 +74,10 @@ jobs:
key: avd-${{ matrix.api-level }}-${{ matrix.os }}-${{ matrix.target }} key: avd-${{ matrix.api-level }}-${{ matrix.os }}-${{ matrix.target }}
- name: assemble tests - name: assemble tests
run: | uses: gradle/gradle-build-action@v2
cd ./test-fixture/ with:
./gradlew assembleAndroidTest build-root-directory: test-fixture
arguments: assembleAndroidTest
- name: run emulator to generate snapshot for caching - name: run emulator to generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true' if: steps.avd-cache.outputs.cache-hit != 'true'
+1 -1
View File
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip