fix(deps): update dependency com.google.protobuf:protobuf-javalite to… #94
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| pull_request: | |
| paths-ignore: | |
| - '**/*.md' | |
| - '.github/**.md' | |
| - '.idea/**' | |
| - 'jitpack.yml' | |
| - '**/.gitignore' | |
| - '.vscode/**' | |
| - '**/.editorconfig' | |
| - 'docs/**' | |
| - 'LICENSE' | |
| - 'NOTICE' | |
| workflow_dispatch: | |
| env: | |
| JAVA_VERSION: 17 | |
| JAVA_DISTRO: 'temurin' | |
| concurrency: | |
| group: ${{ github.ref }}-build | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/dev' }} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DISTRO }} | |
| - uses: malinskiy/action-android/install-sdk@release/0.1.7 | |
| - name: build & test | |
| run: ./gradlew assemble test :transport-ktor:test jacocoTestReport | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v6 | |
| if: always() | |
| with: | |
| report_paths: '**/build/test-results/test/TEST-*.xml' | |
| check_name: Report Build & Test | |
| - name: archive test results | |
| if: failure() | |
| run: | | |
| cd adam/build/reports/tests/test | |
| zip -r -X ../../../../../test-result.zip . | |
| - name: Save test output | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: test-result | |
| path: test-result.zip | |
| - name: archive test coverage | |
| run: | | |
| cd adam/build/reports/jacoco/test/html | |
| zip -r -X ../../../../../../test-coverage.zip . | |
| - name: Save coverage output | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-coverage | |
| path: test-coverage.zip | |
| integration-test: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| api: [ 24, 34, 35 ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DISTRO }} | |
| - uses: malinskiy/action-android/install-sdk@release/0.1.7 | |
| - 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: Gradle cache | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: AVD cache | |
| uses: actions/cache@v5 | |
| id: avd-cache | |
| with: | |
| path: | | |
| ~/.android/avd/* | |
| ~/.android/adb* | |
| key: avd-${{ matrix.api }} | |
| - name: create AVD and generate snapshot for caching | |
| if: steps.avd-cache.outputs.cache-hit != 'true' | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| timeout-minutes: 30 | |
| with: | |
| api-level: ${{ matrix.api }} | |
| target: google_apis | |
| arch: x86_64 | |
| force-avd-creation: false | |
| emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -grpc 8554 | |
| disable-animations: true | |
| script: echo "Generated AVD snapshot for caching." | |
| - name: Run integration tests | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| timeout-minutes: 25 | |
| with: | |
| api-level: ${{ matrix.api }} | |
| target: google_apis | |
| arch: x86_64 | |
| force-avd-creation: false | |
| emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -grpc 8554 | |
| disable-animations: true | |
| script: ./gradlew :adam:integrationTest | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v6 | |
| if: always() | |
| with: | |
| report_paths: '**/build/test-results/integrationTest/TEST-*.xml' | |
| check_name: Report Integration Test API ${{ matrix.api }} | |
| - name: Generate integration code coverage report | |
| if: ${{ !cancelled() }} | |
| run: ./gradlew :adam:jacocoIntegrationTestReport | |
| - name: archive integration test results | |
| if: failure() | |
| run: | | |
| cd adam/build/reports/tests/integrationTest | |
| zip -r -X ../../../../../integration-test-${{ matrix.api }}-result.zip . | |
| - name: Save integration test output | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: integration-test-${{ matrix.api }}-result | |
| path: integration-test-${{ matrix.api }}-result.zip | |
| - name: archive test coverage | |
| if: ${{ !cancelled() }} | |
| run: | | |
| cd adam/build/reports/jacoco/jacocoIntegrationTestReport/html | |
| zip -r -X ../../../../../../integration-test-${{ matrix.api }}-coverage.zip . | |
| - name: Save coverage output | |
| uses: actions/upload-artifact@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: integration-test-${{ matrix.api }}-coverage | |
| path: integration-test-${{ matrix.api }}-coverage.zip | |
| - name: Save logcat output | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: logcat-${{ matrix.api }} | |
| path: artifacts/logcat.log |