Skip to content

Commit 4fae9ce

Browse files
committed
Add a step in the snippet
1 parent 55cd4cd commit 4fae9ce

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ jobs:
8686
8787
We can significantly reduce emulator startup time by setting up AVD snapshot caching:
8888
89-
1. add an `actions/cache@v2` step for caching the `avd`
90-
2. add a `reactivecircus/android-emulator-runner@v2` step to generate a clean snapshot - specify `emulator-options` without `no-snapshot`
91-
3. add another `reactivecircus/android-emulator-runner@v2` step to run your tests using existing AVD / snapshot - specify `emulator-options` with `no-snapshot-save`
89+
1. add a `gradle/gradle-build-actionv2` step for caching the Gradle, more details see [#229](https://github.com/ReactiveCircus/android-emulator-runner/issues/229)
90+
2. add an `actions/cache@v2` step for caching the `avd`
91+
3. add a `reactivecircus/android-emulator-runner@v2` step to generate a clean snapshot - specify `emulator-options` without `no-snapshot`
92+
4. add another `reactivecircus/android-emulator-runner@v2` step to run your tests using existing AVD / snapshot - specify `emulator-options` with `no-snapshot-save`
9293

9394
```yml
9495
jobs:
@@ -102,13 +103,8 @@ jobs:
102103
uses: actions/checkout@v2
103104
104105
- name: Gradle cache
105-
uses: actions/cache@v2
106-
with:
107-
path: |
108-
~/.gradle/caches
109-
~/.gradle/wrapper
110-
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
111-
106+
uses: gradle/gradle-build-actionv2
107+
112108
- name: AVD cache
113109
uses: actions/cache@v2
114110
id: avd-cache
@@ -138,9 +134,6 @@ jobs:
138134
script: ./gradlew connectedCheck
139135
```
140136

141-
Note: if you want to use [gradle-build-action](https://github.com/gradle/gradle-build-action) with `reactivecircus/android-emulator-runner`,
142-
need to declare `uses: gradle/gradle-build-actionv2` without any arguments before `uses: reactivecircus/android-emulator-runner@v2`, more details see [#229](https://github.com/ReactiveCircus/android-emulator-runner/issues/229).
143-
144137
## Configurations
145138

146139
| **Input** | **Required** | **Default** | **Description** |

0 commit comments

Comments
 (0)