Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: run integration test in CI #560

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .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
- name: Run Unit Tests
run: make 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: make integration-test
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
Loading