github.com/micro/go-micro/v2@v2.9.1/.github/workflows/scripts/build-micro.sh (about)

     1  #!/bin/bash
     2  # set -x
     3  
     4  failed=0
     5  go mod edit -replace github.com/micro/go-micro/v2=github.com/micro/go-micro/v2@$1 
     6  # basic test, build the binary
     7  go build
     8  failed=$?
     9  if [ $failed -gt 0 ]; then
    10      exit $failed
    11  fi
    12  # unit tests
    13  IN_TRAVIS_CI=yes go test -v ./...
    14  # TODO integration tests