From 2e9a37eae688e00429b06577ef954278d37f5951 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Fri, 8 Apr 2022 12:58:05 -0700 Subject: [PATCH] Try out the auto-go-mod discovery script --- .github/workflows/testing.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 848edd9fc33..ccf97ac6f1d 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -106,10 +106,12 @@ jobs: run: | go version go test ${{ matrix.testflags }} -cpu 1,4 -timeout 7m google.golang.org/grpc/... - cd ${GITHUB_WORKSPACE}/security/advancedtls && go test ${{ matrix.testflags }} -timeout 2m google.golang.org/grpc/security/advancedtls/... - cd ${GITHUB_WORKSPACE}/security/authorization && go test ${{ matrix.testflags }} -timeout 2m google.golang.org/grpc/security/authorization/... - cd ${GITHUB_WORKSPACE}/gcp/observability && go test ${{ matrix.testflags }} -timeout 2m google.golang.org/grpc/gcp/observability/... - + cd "${GITHUB_WORKSPACE}" + for MOD_FILE in $(find . -name 'go.mod' | grep -v './go.mod'); do + pushd "$(dirname ${MOD_FILE})" + go test ${{ matrix.testflags }} -timeout 2m ./... + popd + done # Non-core gRPC tests (examples, interop, etc) - name: Run extras tests