Skip to content

Commit

Permalink
vet: set PATH to HOME/go/bin, and print go version (#4254)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl authored Mar 9, 2021
1 parent fce74a9 commit d5b6288
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,22 @@ jobs:
# detector and Go1.11 (where we run a reduced set of tests).
- name: Run tests
if: ${{ matrix.type != 'extras' && matrix.type != 'race' && matrix.type != 'tests111' }}
run: go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
run: |
go version
go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
# Race detector tests
- name: Run test race
if: ${{ matrix.TYPE == 'race' }}
run: go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
run: |
go version
go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
# Non-core gRPC tests (examples, interop, etc)
- name: Run extras tests
if: ${{ matrix.TYPE == 'extras' }}
run: |
go version
examples/examples_test.sh
security/advancedtls/examples/examples_test.sh
interop/interop_test.sh
Expand All @@ -99,6 +104,7 @@ jobs:
- name: Run Go1.11 tests
if: ${{ matrix.type == 'tests111' }}
run: |
go version
tests=$(find ${GITHUB_WORKSPACE} -name '*_test.go' | xargs -n1 dirname | sort -u | sed "s:^${GITHUB_WORKSPACE}:.:" | sed "s:\/$::" | grep -v ^./security | grep -v ^./credentials/sts | grep -v ^./credentials/tls/certprovider | grep -v ^./credentials/xds | grep -v ^./xds )
echo "Running tests for " ${tests}
go test -cpu 1,4 -timeout 7m ${tests}
3 changes: 2 additions & 1 deletion vet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ cleanup() {
}
trap cleanup EXIT

PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"
PATH="${HOME}/go/bin:${GOROOT}/bin:${PATH}"
go version

if [[ "$1" = "-install" ]]; then
# Check for module support
Expand Down

0 comments on commit d5b6288

Please sign in to comment.