Skip to content

Update Jetpack Compose compiler and Kotlin #982

Update Jetpack Compose compiler and Kotlin

Update Jetpack Compose compiler and Kotlin #982

Workflow file for this run

name: Android CI
on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
branches:
- develop
jobs:
unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Decode google-services.json
env:
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE}}
run: echo $GOOGLE_SERVICE | base64 --decode > ./app/google-services.json
- name: Unit Test
env:
TZ: Asia/Tokyo
run: ./gradlew testDebugUnitTest
- name: Create jacoco report
run: ./gradlew jacocoTestReport
- uses: codecov/codecov-action@v4
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: '**/build/test-results/*/TEST-*.xml'
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Decode google-services.json
env:
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE}}
run: echo $GOOGLE_SERVICE | base64 --decode > ./app/google-services.json
- name: Lint
run: ./gradlew lintDebug