From 2a47181ccff8f42160c3a8a2ffa1754599ff2fcb Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Mon, 23 Feb 2026 18:07:29 +0000 Subject: [PATCH 1/3] chore(deps): update Go 1.16->1.26, update google/shlex --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 5a80232..aaf0bd9 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/taigrr/adb -go 1.16 +go 1.26.0 require github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 From 2b1116d9207b0437d7df60a95480929d60370e14 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Mon, 23 Feb 2026 18:07:29 +0000 Subject: [PATCH 2/3] refactor: remove unused const and var to pass staticcheck - Remove unused 'killed' const in util.go - Remove unused 'command' var in examples/injection/main.go --- examples/injection/main.go | 7 ------- util.go | 2 -- 2 files changed, 9 deletions(-) diff --git a/examples/injection/main.go b/examples/injection/main.go index 99b74d1..2ce1ed7 100644 --- a/examples/injection/main.go +++ b/examples/injection/main.go @@ -7,13 +7,6 @@ import ( "github.com/taigrr/adb" ) -var command string - -func init() { - // TODO allow for any input to be used as the command - command = "ls" -} - func main() { ctx := context.TODO() devs, err := adb.Devices(ctx) diff --git a/util.go b/util.go index 5095dd9..8f879e7 100644 --- a/util.go +++ b/util.go @@ -10,8 +10,6 @@ import ( var adb string -const killed = 130 - func init() { path, err := exec.LookPath("adb") if err != nil { From e87a19426763ced054f572620fff4b158cbf42b4 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Mon, 23 Feb 2026 18:07:29 +0000 Subject: [PATCH 3/3] ci: add GitHub Actions test workflow --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e10a80d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,17 @@ +name: Test +on: + push: + branches: [master] + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - run: go test -race ./... + - run: go vet ./... + - run: go build ./... +