Merge pull request #1273 from usuiat/support_nested_scroll_fling #10
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: Build | |
# From now in android | |
# https://github.com/android/nowinandroid | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- 'app-ios/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
permissions: {} | |
jobs: | |
build: | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
- uses: ./.github/actions/setup-java | |
- run: ./gradlew :app-android:assemble --stacktrace | |
- name: Upload build outputs (APKs) | |
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | |
with: | |
name: build-outputs | |
path: app-android/build/outputs | |
retention-days: 14 | |
# 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 17 | |
# uses: actions/setup-java@v1 | |
# with: | |
# java-version: 17 | |
# | |
# - 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' |