Skip to content

Commit

Permalink
Tidy up caching and test on API 29
Browse files Browse the repository at this point in the history
Change-Id: I87055ba8f6f2783d8c3d8ab8b4b5da08fdefd8e9
  • Loading branch information
Chris authored and JoseAlcerreca committed Aug 27, 2020
1 parent 2774696 commit 96221b9
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions .github/workflows/JetNews.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,11 @@ jobs:

- uses: actions/cache@v2
with:
path: ~/.gradle/caches/modules-2
key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}

- uses: actions/cache@v2
with:
path: ~/.gradle/caches/jars-3
key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}

- uses: actions/cache@v2
with:
path: ~/.gradle/caches/build-cache-1
key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
path: |
~/.gradle/caches/modules-2
~/.gradle/caches/jars-3
~/.gradle/caches/build-cache-1
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Build project
working-directory: ${{ env.SAMPLE_PATH }}
Expand All @@ -58,7 +51,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
api-level: [23, 26, 30]
api-level: [23, 26, 29]

steps:
- name: Checkout
Expand All @@ -77,18 +70,11 @@ jobs:

- uses: actions/cache@v2
with:
path: ~/.gradle/caches/modules-2
key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}

- uses: actions/cache@v2
with:
path: ~/.gradle/caches/jars-3
key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}

- uses: actions/cache@v2
with:
path: ~/.gradle/caches/build-cache-1
key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
path: |
~/.gradle/caches/modules-2
~/.gradle/caches/jars-3
~/.gradle/caches/build-cache-1
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
Expand Down

0 comments on commit 96221b9

Please sign in to comment.