Skip to content

Merge pull request #73 from sipgate/renovate/agp #242

Merge pull request #73 from sipgate/renovate/agp

Merge pull request #73 from sipgate/renovate/agp #242

Workflow file for this run

name: Build and Test
on:
workflow_dispatch:
inputs:
run_integration_tests:
description: 'Run Integration Tests on Android Emulator'
type: boolean
push:
branches: [ "**" ]
paths-ignore:
- 'README.md'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Enable KVM group perms
if: ${{ inputs.run_integration_tests }}
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
ls /dev/kvm
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Setup Gradle to support advanced caching
uses: gradle/actions/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build release with Gradle
run: ./gradlew assemble check
- name: Install Firebase Tools
if: ${{ inputs.run_integration_tests }}
run: npm install -g firebase-tools
- name: Run Integration Tests
if: ${{ inputs.run_integration_tests }}
run: firebase emulators:exec --project demo-test --only database,firestore './gradlew pixel2api30Check --no-parallel'
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
**/build/test-results/**/*.xml
**/build/outputs/androidTest-results/managedDevice/**/**/*.xml