Skip to content

Commit 33bf181

Browse files
committed
test: Ensure cover is installed
1 parent 53305aa commit 33bf181

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ jobs:
5151
perl -e "use $module; 1;" > /dev/null 2>/dev/null || echo $module
5252
done | xargs
5353
)
54+
command -v cover >/dev/null 2>/dev/null || APT_PACKAGES=libdevel-cover-perl
5455
[ -z "$cpan_modules" ] || command -v cpanm >/dev/null 2>/dev/null || curl -s -S -L https://cpanmin.us | perl - --sudo App::cpanminus
5556
command -v jd && HAS_JD=1 || HAS_JD=
5657
[ -n "$HAS_JD" ] || command -v go >/dev/null 2>/dev/null || GO_PACKAGE=" golang"
57-
APT_PACKAGES="$GO_PACKAGE"
58+
APT_PACKAGES="$APT_PACKAGES$GO_PACKAGE"
5859
[ -z "$APT_PACKAGES" ] ||
5960
(
60-
APT_PACKAGES="$GO_PACKAGE"
6161
sudo apt-get install -y $APT_PACKAGES ||
6262
sudo apt-get update &&
6363
sudo apt-get install -y $APT_PACKAGES

0 commit comments

Comments
 (0)