Skip to content

Commit 02e6fe8

Browse files
committed
android: run Go test in commit
Updates tailscale/tailscale#16836 Signed-off-by: kari-ts <kari@tailscale.com>
1 parent e118bbd commit 02e6fe8

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232

3333
- name: Format check (ktfmt)
3434
run: make fmt-check
35+
36+
- name: Run Go tests
37+
run: make go-test
3538

3639
- name: Build APKs
3740
run: make tailscale-debug.apk

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ checkandroidsdk: ## Check that Android SDK is installed
311311
\tANDROID_SDK_ROOT=$(ANDROID_SDK_ROOT)\n\n\
312312
See README.md for instructions on how to install the prerequisites.\n"; exit 1)
313313

314+
.PHONY: go-test
315+
go-test: ## Run the Go tests (excludes packages requiring Android NDK)
316+
./tool/go test $$(./tool/go list ./... | grep -v '^github.com/tailscale/tailscale-android/libtailscale$$')
317+
314318
.PHONY: test
315319
test: gradle-dependencies ## Run the Android tests
316320
(cd android && ./gradlew test)

0 commit comments

Comments
 (0)