Skip to content

Commit 4134a43

Browse files
Adding go work config for test coverage to fix build and ensure local files are used
1 parent 5c51f87 commit 4134a43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/_reusable-test-coverage.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ jobs:
9393
echo "Previous test coverage: Not found"
9494
fi
9595
96+
## Setup Workspace for Tooling
97+
# This forces Go to look at local directories for modules instead of trying to fetch them from online.
98+
go work init
99+
go work use -r .
100+
96101
## Step 2. Check new coverage
97102
# Get into directory so that go tool cover can work
98103
go tool cover -func=coverage/combined.out > /tmp/coverage.txt

0 commit comments

Comments
 (0)