release-note - [feature-notification] sub feature complete "Select In… #66
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: Dev - Push | |
on: | |
push: | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
branches: [ "dev" ] | |
workflow_dispatch: | |
jobs: | |
unit-test: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Enable KVM | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Setup JDK And Gradle | |
uses: ./.github/actions/setup-jdk-gradle | |
with: | |
cache-read-only: false | |
- name: AVD cache | |
uses: actions/cache@v3 | |
id: avd-cache | |
with: | |
path: | | |
~/.android/avd/* | |
~/.android/adb* | |
key: avd-29 | |
- name: create AVD and generate snapshot for caching | |
if: steps.avd-cache.outputs.cache-hit != 'true' | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
force-avd-creation: false | |
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: false | |
script: echo "Generated AVD snapshot for caching." | |
- name: Get Google Services Json | |
env: | |
CERTIFICATE_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
run: | | |
echo $CERTIFICATE_BASE64 | base64 --decode > app/google-services.json | |
- name: Run Unit Test | |
run: ./gradlew test | |
- name: Upload Unit Test Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: unit-test-report | |
path: build/reports/unitTests | |
integration-test: | |
needs: [unit-test] | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Enable KVM | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Setup JDK And Gradle | |
uses: ./.github/actions/setup-jdk-gradle | |
with: | |
cache-read-only: true | |
- name: AVD cache | |
uses: actions/restore@v3 | |
id: avd-cache | |
with: | |
path: | | |
~/.android/avd/* | |
~/.android/adb* | |
key: avd-29 | |
- name: Get Google Services Json | |
env: | |
CERTIFICATE_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
run: | | |
echo $CERTIFICATE_BASE64 | base64 --decode > app/google-services.json | |
- name: Run Integration Test | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
force-avd-creation: false | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
script: ./gradlew connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.cucumberUseAndroidJUnitRunner=true mergeAndroidReports | |
- name: Upload Integration Test Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: integration-test-report | |
path: build/androidTest-results | |
acceptance-test: | |
needs: [unit-test] | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Enable KVM | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Setup JDK And Gradle | |
uses: ./.github/actions/setup-jdk-gradle | |
with: | |
cache-read-only: true | |
- name: AVD cache | |
uses: actions/restore@v3 | |
id: avd-cache | |
with: | |
path: | | |
~/.android/avd/* | |
~/.android/adb* | |
key: avd-29 | |
- name: Get Google Services Json | |
env: | |
CERTIFICATE_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
run: | | |
echo $CERTIFICATE_BASE64 | base64 --decode > app/google-services.json | |
- name: Run Acceptance Test | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
force-avd-creation: false | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
script: ./gradlew connectedAndroidTest mergeAndroidReports | |
- name: Upload Acceptance Test Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-test-report | |
path: build/androidTest-results | |
assemble-debug: | |
needs: [unit-test, integration-test, acceptance-test] | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Enable KVM | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Setup JDK And Gradle | |
uses: ./.github/actions/setup-jdk-gradle | |
with: | |
cache-read-only: false | |
- name: Get Google Services Json | |
env: | |
CERTIFICATE_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
run: | | |
echo $CERTIFICATE_BASE64 | base64 --decode > app/google-services.json | |
- name: Assemble Debug Apk | |
run: ./gradlew assembleDebug | |
- name: Upload Debug Apk | |
uses: actions/upload-artifact@v3 | |
with: | |
name: debug-apk | |
path: app/build/outputs/apk/debug/*.apk |