Skip to content

Change values() to entries after kotlin 1.9 #4438

Change values() to entries after kotlin 1.9

Change values() to entries after kotlin 1.9 #4438

Workflow file for this run

name: Android CI
on:
pull_request:
branches: [ master ]
types: [ synchronize, opened, reopened, ready_for_review ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
instrumentation-tests:
if: github.event.pull_request.draft == false
runs-on: [ self-hosted, Android ]
strategy:
matrix:
api-level: [ 31 ]
target: [ google_apis ]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout the code
uses: actions/[email protected]
with:
token: ${{ secrets.MY_REPO_PAT }}
submodules: recursive
- name: Gradle cache
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: 'zulu'
cache: gradle
# Setup Gradle and run Build
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
# Run tests
- name: Run Unit tests
run: ./gradlew testDebugUnitTest --stacktrace