ci: Run go tests in github action (#2997)
This runs the make targets: - make test - make test-api - make test-sdk The go tests in the main module are split by package and run in parallel in a matrix build with GOMAXPROCS=1. This is done primarily to work around an issue that is only seen on the github runners. When running at a higher GOMAXPROCS tests that use vault instances in docker containers start to intermitently fail with errors from vault, usually either a 400, 403, or TLS error. It is not clear what the cause of this is, since the same tests run fine on self hosted runners and on CircleCI. Co-authored-by: Sarah Thompson <sthompson@hashicorp.com> Co-authored-by: Daniel Kimsey <daniel.kimsey@hashicorp.com>
This commit is contained in:
4 files changed
+207
-3
No files matched your search
+1
-1
@@ -17,7 +17,7 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
||||
cd "$DIR"
|
||||
|
||||
if [ "${CI_BUILD}x" != "x" ]; then
|
||||
source /home/circleci/.bashrc
|
||||
[[ -f /home/circleci/.bashrc ]] && source /home/circleci/.bashrc
|
||||
fi
|
||||
|
||||
# Set build tags
|
||||
|
||||
Reference in new issue
Block a user