fix: Delay Feature Flag networking call until the app has been foregrounded. #514
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: Mixpanel Android Pull Request and master branch CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/[email protected] | |
| - 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: Run Unit test | |
| uses: reactivecircus/[email protected] | |
| with: | |
| api-level: 34 | |
| arch: arm64-v8a | |
| emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim | |
| script: ./gradlew createDebugCoverageReport | |
| - name: Lint | |
| run: ./gradlew lint | |
| - name: Upload test report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Unit Test Report | |
| path: build/reports/androidTests/connected | |
| - name: Upload test coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Test Coverage Report | |
| path: build/reports/coverage/debug/ | |
| - name: Upload lint report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Lint Report | |
| path: build/reports/lint-results.html | |
| - name: Android docs | |
| run: ./gradlew --info androidJavadocs | |