-
Notifications
You must be signed in to change notification settings - Fork 19
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
chore(ci): merge codecov workflow files #313
Conversation
scripts/tests-unit.sh
Outdated
@@ -19,3 +23,20 @@ go fmt ./... | |||
go vet -v ./... | |||
go test -v ./... | |||
go test -v -race ./... | |||
|
|||
echo "=== Running tests and generating coverage report ===" | |||
go test -coverprofile="${COVERAGE_FILE}" ./... 2>&1 | tee "${LOG_FILE}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should replace line 24 and make sure line 25 continues to work. BTW: I think we can merge line 24 with line 25? /cc @gyuho
go test -coverprofile="${COVERAGE_FILE}" ./... 2>&1 | tee "${LOG_FILE}" | |
go test -v -coverprofile="${COVERAGE_FILE}" ./... |
scripts/tests-unit.sh
Outdated
@@ -19,3 +23,20 @@ go fmt ./... | |||
go vet -v ./... | |||
go test -v ./... | |||
go test -v -race ./... | |||
|
|||
echo "=== Running tests and generating coverage report ===" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "=== Running tests and generating coverage report ===" |
scripts/tests-unit.sh
Outdated
exit $test_success | ||
fi | ||
|
||
echo "=== Checking if coverage file exists ===" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "=== Checking if coverage file exists ===" |
scripts/tests-unit.sh
Outdated
@@ -10,6 +10,10 @@ set -o nounset | |||
# exit script whenever it errs | |||
set -o errexit | |||
|
|||
LOG_FILE=${1:-test-coverage.log} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOG_FILE=${1:-test-coverage.log} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm after addressing @eahydra feedback
No description provided.