Updated to MacOS 11, added Google API & added Pixel 2 Profile

Changed the Script

Reverted all changes and added google APIs and removed gradle run

Added gradle run
This commit is contained in:
Gouri Panda 2022-09-04 02:43:55 +05:30 committed by Kelson
parent 2125e0bf99
commit a567974ad2
3 changed files with 11 additions and 8 deletions

View File

@ -16,8 +16,9 @@ jobs:
strategy:
matrix:
api-level: [21,30]
target: [ google_apis ]
fail-fast: false
runs-on: macos-10.15
runs-on: macos-11
steps:
- name: checkout
uses: actions/checkout@v3
@ -32,12 +33,12 @@ jobs:
- name: Restore Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: create instrumentation coverage
uses: ReactiveCircus/android-emulator-runner@v2.23.0
@ -46,6 +47,7 @@ jobs:
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
profile: pixel_2
ndk: 21.4.7075529
sdcard-path-or-size: '1000M'
disable-animations: false

View File

@ -13,7 +13,7 @@ jobs:
api-level: [21, 22, 23, 24, 25, 27, 28, 30]
target: [google_apis]
fail-fast: false
runs-on: macos-latest
runs-on: macos-11
steps:
- name: checkout

View File

@ -49,6 +49,7 @@ task jacocoInstrumentationTestReport(type: JacocoReport, dependsOn: ['createDebu
kotlinSrc << "$proj.projectDir/src/main/kotlin"
execution << fileTree(dir: proj.buildDir,
includes: ['jacoco/testDebugUnitTest.exec',
'outputs/code-coverage/connected/*coverage.ec',
'outputs/code_coverage/debugAndroidTest/connected/**/*.ec'])
}
sourceDirectories.from = files(javaSrc, kotlinSrc)