Skip to content

Commit 26c1732

Browse files
committed
Updating github-config
1 parent 046b41a commit 26c1732

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/test-pull-request.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
uses: actions/checkout@v3
2727

2828
- name: Run Unit Tests
29+
env:
30+
GO_TEST_PARAMS: -count=5
2931
run: ./scripts/unit.sh
3032

3133
- name: Get builders from integration.json

scripts/unit.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set -o pipefail
66
readonly PROGDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
77
readonly BUILDPACKDIR="$(cd "${PROGDIR}/.." && pwd)"
88

9+
GO_TEST_PARAMS="${GO_TEST_PARAMS:-}"
10+
911
# shellcheck source=SCRIPTDIR/.util/tools.sh
1012
source "${PROGDIR}/.util/tools.sh"
1113

@@ -50,7 +52,7 @@ function unit::run() {
5052

5153
testout=$(mktemp)
5254
pushd "${BUILDPACKDIR}" > /dev/null
53-
if go test ./... -v -run Unit | tee "${testout}"; then
55+
if go test ./... -v ${GO_TEST_PARAMS} -run Unit | tee "${testout}"; then
5456
util::tools::tests::checkfocus "${testout}"
5557
util::print::success "** GO Test Succeeded **"
5658
else

0 commit comments

Comments
 (0)