Only use primary dex files for local snapshots #95
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: distribution checks | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- gradle/** | |
- gradle-plugin/** | |
- distribution/** | |
pull_request: | |
branches: [ main ] | |
paths: | |
- gradle/** | |
- gradle-plugin/** | |
- distribution/** | |
env: | |
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx6g -Dorg.gradle.daemon=false -Dorg.gradle.vfs.watch=false -Dkotlin.incremental=false" | |
jobs: | |
device-spread-test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Generate target APK | |
run: ./gradlew :distribution:sample:app:assembleDebug -Pandroid.useAndroidX=true | |
env: | |
EMERGE_DISTRIBUTION_API_KEY: ${{ secrets.EMERGE_DISTRIBUTION_API_KEY }} | |
PR_SHA: ${{ github.event.pull_request.head.sha }} | |
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
- name: Generate test APK | |
run: ./gradlew :distribution:sample:app:assembleAndroidTest -Pandroid.useAndroidX=true | |
env: | |
EMERGE_DISTRIBUTION_API_KEY: ${{ secrets.EMERGE_DISTRIBUTION_API_KEY }} | |
PR_SHA: ${{ github.event.pull_request.head.sha }} | |
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
minsdk-test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Generate target APK | |
run: ./gradlew :distribution:sample:app:assembleDebug -Pandroid.useAndroidX=true | |
env: | |
EMERGE_DISTRIBUTION_API_KEY: ${{ secrets.EMERGE_DISTRIBUTION_API_KEY }} | |
PR_SHA: ${{ github.event.pull_request.head.sha }} | |
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
- name: Generate test APK | |
run: ./gradlew :distribution:sample:app:assembleAndroidTest -Pandroid.useAndroidX=true | |
env: | |
EMERGE_DISTRIBUTION_API_KEY: ${{ secrets.EMERGE_DISTRIBUTION_API_KEY }} | |
PR_SHA: ${{ github.event.pull_request.head.sha }} | |
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
- name: Publish test report | |
uses: mikepenz/action-junit-report@v2 | |
if: always() # always run even if the tests fail | |
with: | |
report_paths: 'build/test-results/**/*.xml' |