Commit 26c1732 1 parent 046b41a commit 26c1732 Copy full SHA for 26c1732
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 26
26
uses : actions/checkout@v3
27
27
28
28
- name : Run Unit Tests
29
+ env :
30
+ GO_TEST_PARAMS : -count=5
29
31
run : ./scripts/unit.sh
30
32
31
33
- name : Get builders from integration.json
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ set -o pipefail
6
6
readonly PROGDIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
7
7
readonly BUILDPACKDIR=" $( cd " ${PROGDIR} /.." && pwd) "
8
8
9
+ GO_TEST_PARAMS=" ${GO_TEST_PARAMS:- } "
10
+
9
11
# shellcheck source=SCRIPTDIR/.util/tools.sh
10
12
source " ${PROGDIR} /.util/tools.sh"
11
13
@@ -50,7 +52,7 @@ function unit::run() {
50
52
51
53
testout=$( mktemp)
52
54
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
54
56
util::tools::tests::checkfocus " ${testout} "
55
57
util::print::success " ** GO Test Succeeded **"
56
58
else
You can’t perform that action at this time.
0 commit comments