Skip to content

Commit 7e5a9d2

Browse files
committed
fixup
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent d69c716 commit 7e5a9d2

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/go-test-monorepo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
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'

go.work

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
go 1.25.4
2+
3+
use (
4+
.
5+
./sample-monorepo
6+
)

0 commit comments

Comments
 (0)