Skip to content

Commit bd3c45a

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
Exclude 3rdparty submodule packages from CI test and vet
The hardware-interfaces and frameworks-base submodules contain AOSP Soong build files that import packages only available inside the Android build tree (android/soong/*, github.com/google/blueprint). Filter them out via `go list -e | grep -v /3rdparty/`.
1 parent 7a73a96 commit bd3c45a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
go-version: ${{ matrix.go-version }}
2424

2525
- name: Unit tests
26-
run: go test -v -race ./tools/pkg/... ./binder/ ./parcel/
26+
run: go test -v -race $(go list -e ./tools/pkg/... | grep -v /3rdparty/) ./binder/ ./parcel/
2727

2828
- name: Vet
29-
run: go vet ./tools/pkg/... ./binder/ ./parcel/ ./kernelbinder/ ./servicemanager/ ./errors/ ./tools/...
29+
run: go vet $(go list -e ./tools/pkg/... ./tools/... | grep -v /3rdparty/) ./binder/ ./parcel/ ./kernelbinder/ ./servicemanager/ ./errors/
3030

3131
- name: Build commands and tools
3232
run: go build ./tools/cmd/...

0 commit comments

Comments
 (0)