Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vet: set PATH to HOME/go/bin, and print go version #4254

Merged
merged 1 commit into from
Mar 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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