File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 count_modules=$(go list -m|wc -l)
3535 if [[ "${count_modules}" -gt 1 ]] ; then
3636 echo "is_monorepo=true" >> "${GITHUB_OUTPUT}"
37+ echo "::notice title=is_monorepo:true"
3738 exit
3839 fi
3940 echo "is_monorepo=false" >> "${GITHUB_OUTPUT}"
41+ echo "::notice title=is_monorepo:false"
4042 -
4143 name : Install golangci-lint
4244 # golangci-action v9.1+ has an experimental built-in mono repo detection setup.
@@ -101,6 +103,10 @@ jobs:
101103 if : ${{ steps.detect-test-work-supported.outputs.supported == 'true' || steps.detect-test-work-supported.outputs.supported == true }}
102104 # with go.work file enabled, go test recognizes sub-modules and collects all packages to be covered
103105 # without specifying -coverpkg.
106+ #
107+ # This requires:
108+ # * go.work properly initialized with use of all known modules
109+ # * go.work committed to git
104110 run : >
105111 gotestsum
106112 --jsonfile 'unit.report.${{ matrix.os }}-${{ matrix.go }}.json'
Original file line number Diff line number Diff line change 11go 1.25.4
2+
3+ use (
4+ .
5+ ./sample-monorepo
6+ )
You can’t perform that action at this time.
0 commit comments