Skip to content

Commit 79323a0

Browse files
authored
Merge pull request #1987 from kolyshkin/md2man
ci: fix test (check) flake caused by older md2man
2 parents 92ad4e2 + e2c09bf commit 79323a0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ jobs:
110110
make -j $(nproc)
111111
;;
112112
check)
113+
# Fedora (used by maintainers as well as for packaging) has
114+
# newer md2man than in Ubuntu, so we have to update it.
115+
# Always use the latest go-md2man version here.
116+
go install github.com/cpuguy83/go-md2man/v2@latest
117+
export PATH=$(go env GOROOT)/bin:$PATH
118+
113119
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
114120
./configure --disable-dl
115121
make
@@ -122,7 +128,7 @@ jobs:
122128
unshare -r make check ASAN_OPTIONS=detect_leaks=false || (cat test-suite.log; exit 1)
123129
124130
git status
125-
git diff
131+
git diff --exit-code
126132
127133
# check that the working dir is clean
128134
git describe --broken --dirty --all | grep -qv dirty

0 commit comments

Comments
 (0)