Version 0 is a valid emoji version, so should be included. #80
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kotlin | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# Enrich gradle.properties for CI/CD | |
env: | |
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx4096m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false | |
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 4 --no-daemon | |
ARCH: x86_64 | |
DEVICE: Nexus 5X | |
jobs: | |
build: | |
name: Validate Kotlin | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
api-level: [23] | |
concurrency: | |
# When running on main, use the sha to allow all runs of this workflow to run concurrently. | |
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs. | |
group: ${{ github.workflow }} | |
cancel-in-progress: ${{ github.ref_name != 'main' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: actions/setup-node@v3 | |
with: | |
cache: "yarn" | |
- name: Setup json generation | |
run: "./scripts/setup.sh" | |
- name: Gerenate json | |
run: "./scripts/generateJson.sh" | |
- name: Setup Gradle & Build test cases | |
uses: gradle/gradle-build-action@v2 | |
with: | |
build-root-directory: platforms/android | |
arguments: | | |
:library:assembleDebugAndroidTest ${{ env.CI_GRADLE_ARG_PROPERTIES }} | |
cache-read-only: false | |
- uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
working-directory: platforms/android | |
api-level: ${{ matrix.api-level }} | |
arch: ${{ env.ARCH }} | |
profile: ${{ env.DEVICE }} | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
enable-hw-keyboard: true | |
disk-size: 3G | |
# Workaround for https://github.com/ReactiveCircus/android-emulator-runner/issues/319 | |
script: | | |
adb uninstall io.element.android.emojibasebindings.test; ./gradlew :library:connectedDebugAndroidTest ${{ env.CI_GRADLE_ARG_PROPERTIES }} |