Skip to content

Commit 2e63e31

Browse files
committed
test: set mod vendor
Signed-off-by: CrazyMax <[email protected]>
1 parent 2870e0e commit 2e63e31

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/test-os.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ jobs:
4848
name: Install gotestsum
4949
run: |
5050
go install gotest.tools/gotestsum@${{ env.GOTESTSUM_VERSION }}
51-
-
52-
name: Go mod
53-
run: |
54-
go mod download
5551
-
5652
name: Test
5753
env:
@@ -64,6 +60,7 @@ jobs:
6460
--junitfile="./bin/testreports/junit-report.xml" \
6561
--packages="./..." \
6662
-- \
63+
"-mod=vendor" \
6764
"-coverprofile" "./bin/testreports/coverage.txt" \
6865
"-covermode" "atomic" ${TESTFLAGS}
6966
shell: bash

hack/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ testReportsDir="$(pwd)/bin/testreports"
5858
mkdir -p "$testReportsDir"
5959
testReportsVol="-v $testReportsDir:/testreports"
6060
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"
6262

6363
buildxCmd build $cacheFromFlags \
6464
--build-arg BUILDKITD_TAGS \

0 commit comments

Comments
 (0)