Skip to content

Commit

Permalink
android: run integration test in CI
Browse files Browse the repository at this point in the history
Fixes tailscale/corp#24242

Signed-off-by: kari-ts <[email protected]>
  • Loading branch information
kari-ts committed Nov 12, 2024
1 parent 4c4148b commit 5c4a4ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,17 @@ jobs:
- name: Build APKs
run: make tailscale-debug.apk

- name: Run tests
run: make test
- name: Run Unit Tests
run: ./gradlew test

- name: Set up Android SDK
uses: android-actions/setup-android@v3

- name: Start emulator
run: |
adb devices
adb wait-for-device
adb shell input keyevent 82 &
- name: Run Integration Tests
run: ./gradlew connectedAndroidTest
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ checkandroidsdk: ## Check that Android SDK is installed
test: gradle-dependencies ## Run the Android tests
(cd android && ./gradlew test)

.PHONY: integration-test
integration-test: gradle-dependencies ## Run the integration tests
(cd android && ./gradlew connectedAndroidTest)

.PHONY: emulator
emulator: ## Start an android emulator instance
@echo "Checking installed SDK packages..."
Expand Down

0 comments on commit 5c4a4ac

Please sign in to comment.