File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 48
48
name : Install gotestsum
49
49
run : |
50
50
go install gotest.tools/gotestsum@${{ env.GOTESTSUM_VERSION }}
51
- -
52
- name : Go mod
53
- run : |
54
- go mod download
55
51
-
56
52
name : Test
57
53
env :
64
60
--junitfile="./bin/testreports/junit-report.xml" \
65
61
--packages="./..." \
66
62
-- \
63
+ "-mod=vendor" \
67
64
"-coverprofile" "./bin/testreports/coverage.txt" \
68
65
"-covermode" "atomic" ${TESTFLAGS}
69
66
shell : bash
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ testReportsDir="$(pwd)/bin/testreports"
58
58
mkdir -p " $testReportsDir "
59
59
testReportsVol=" -v $testReportsDir :/testreports"
60
60
gotestsumArgs=" --format=standard-verbose --jsonfile=/testreports/go-test-report$TEST_REPORT_SUFFIX .json --junitfile=/testreports/junit-report$TEST_REPORT_SUFFIX .xml"
61
- gotestArgs=" -coverprofile=/testreports/coverage-report$TEST_REPORT_SUFFIX .txt -covermode=atomic"
61
+ gotestArgs=" -mod=vendor - coverprofile=/testreports/coverage-report$TEST_REPORT_SUFFIX .txt -covermode=atomic"
62
62
63
63
buildxCmd build $cacheFromFlags \
64
64
--build-arg BUILDKITD_TAGS \
You can’t perform that action at this time.
0 commit comments