Skip to content

Update peter-evans/find-comment digest to e3c124b #2193

Update peter-evans/find-comment digest to e3c124b

Update peter-evans/find-comment digest to e3c124b #2193

Workflow file for this run

name: Build
# From now in android
# https://github.com/android/nowinandroid
on:
push:
branches:
- main
pull_request:
paths-ignore:
- 'app-ios/**'
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
get-pr-number:
if: github.event_name == 'pull_request'
name: "get-pr-number"
runs-on: ubuntu-latest
steps:
- name: ${{ github.event.pull_request.number }}
run: echo ok
build:
runs-on: macos-12
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.konan
key: ${{ runner.os }}-kotlin-native-${{ hashFiles('gradle/libs.versions.toml', '**/*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-kotlin-native-
- name: Validate Gradle Wrapper
uses: gradle/[email protected]
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Check spotless
run: ./gradlew spotlessCheck --stacktrace
- name: Check ComposeLint
run: ./gradlew composeLint --stacktrace
- name: Check lint
run: ./gradlew lintDebug --stacktrace
# continue-on-error: true # https://issuetracker.google.com/issues/241787635
- name: Build all build type and flavor permutations
run: ./gradlew assemble --stacktrace
- name: Build zipline
run: ./gradlew compileZipline --stacktrace
- name: Run local tests
run: ./gradlew testDebug --stacktrace
- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v3
with:
name: assemble-output
path: app-android/build/outputs/apk/dev/debug/app-android-dev-debug.apk
retention-days: 14
- name: Upload build reports
if: always()
uses: actions/upload-artifact@v3
with:
name: build-reports
path: app-android/build/reports
retention-days: 30
# save computation resource for now
# androidTest:
# needs: build
# runs-on: macOS-latest # enables hardware acceleration in the virtual machine
# timeout-minutes: 45
# strategy:
# matrix:
# api-level: [ 23, 26, 30 ]
#
# steps:
# - name: Checkout
# uses: actions/checkout@v3
#
# - name: Copy CI gradle.properties
# run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
#
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: 11
# distribution: 'temurin'
#
# - name: Setup Gradle
# uses: gradle/gradle-build-action@v2
#
# - name: Run instrumentation tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.api-level }}
# arch: x86_64
# disable-animations: true
# disk-size: 1500M
# heap-size: 512M
# script: ./gradlew connectedDebugAndroidTest
#
# - name: Upload test reports
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: test-reports
# path: '*/build/reports/androidTests'