-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change all build workflows to switch to Gradle managed devices
- Loading branch information
Showing
2 changed files
with
40 additions
and
55 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,6 @@ jobs: | |
|
||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
api-level: [ 30 ] | ||
|
||
env: | ||
GITHUB_PACKAGE_DOWNLOAD_USER: ${{ github.actor }} | ||
GITHUB_PACKAGE_DOWNLOAD_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_PACKAGE_UPLOAD_USER: ${{ github.actor }} | ||
GITHUB_PACKAGE_UPLOAD_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -30,47 +20,50 @@ jobs: | |
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Setup Android SDK | ||
uses: bitfunk/[email protected] | ||
uses: android-actions/setup-android@v2 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Version | ||
run: ./gradlew --no-daemon --stacktrace versionInfo | ||
run: ./gradlew --stacktrace versionInfo | ||
|
||
- name: Build | ||
run: ./gradlew --no-daemon --stacktrace build | ||
run: ./gradlew --stacktrace build | ||
|
||
- name: Run Android instrumented tests | ||
run: ./gradlew cleanManagedDevices --unused-only && | ||
./gradlew --stacktrace androidGroupDebugAndroidTest | ||
-Dorg.gradle.workers.max=1 | ||
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" | ||
|
||
- name: Run Android Device Tests | ||
uses: bitfunk/[email protected] | ||
- name: Publish test report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
target: google_apis | ||
arch: x86_64 | ||
profile: Nexus 5 | ||
avd-name: blueprint-${{ matrix.api-level }} | ||
force-avd-creation: false | ||
emulator-options: -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: ./gradlew --no-daemon --stacktrace connectedCheck | ||
report_paths: '**/build/test-results/**/TEST-*.xml' | ||
|
||
- name: Analyze | ||
if: ${{ false }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew --no-daemon --stacktrace testCodeCoverageReport sonarqube | ||
run: ./gradlew --stacktrace testCodeCoverageReport sonarqube | ||
|
||
- name: Publish documentation | ||
env: | ||
GRGIT_USER: ${{ github.actor }} | ||
GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew --no-daemon --stacktrace mkdocsPublish | ||
run: ./gradlew --stacktrace mkdocsPublish | ||
|
||
- name: Publish Snapshot Version | ||
run: echo "TODO" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,6 @@ jobs: | |
|
||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
api-level: [ 30 ] | ||
|
||
env: | ||
GITHUB_PACKAGE_DOWNLOAD_USER: ${{ github.actor }} | ||
GITHUB_PACKAGE_DOWNLOAD_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_PACKAGE_UPLOAD_USER: ${{ github.actor }} | ||
GITHUB_PACKAGE_UPLOAD_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -29,35 +19,37 @@ jobs: | |
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Setup Android SDK | ||
uses: bitfunk/[email protected] | ||
uses: android-actions/setup-android@v2 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Version | ||
run: ./gradlew --no-daemon --stacktrace versionInfo | ||
run: ./gradlew --stacktrace versionInfo | ||
|
||
- name: Build | ||
run: ./gradlew --stacktrace build | ||
|
||
- name: Build project | ||
run: ./gradlew --no-daemon --stacktrace build | ||
- name: Run Android instrumented tests | ||
run: ./gradlew cleanManagedDevices --unused-only && | ||
./gradlew --stacktrace androidGroupDebugAndroidTest | ||
-Dorg.gradle.workers.max=1 | ||
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" | ||
|
||
- name: Run Android Device Tests | ||
uses: bitfunk/[email protected] | ||
- name: Publish test report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
target: google_apis | ||
arch: x86_64 | ||
profile: Nexus 5 | ||
avd-name: blueprint-${{ matrix.api-level }} | ||
force-avd-creation: false | ||
emulator-options: -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: ./gradlew --no-daemon --stacktrace connectedCheck | ||
report_paths: '**/build/test-results/**/TEST-*.xml' | ||
|
||
- name: Publish documentation | ||
env: | ||
|