Skip to content

Commit d9ea435

Browse files
committed
Refactor dependency installation in Perl CI workflow to use cpanm
1 parent d09c903 commit d9ea435

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/perl.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121

2222
- name: Install dependencies
2323
run: |
24-
sudo apt-get update
25-
sudo apt-get install -y libio-socket-ssl-perl libnet-dns-perl
24+
if ! command -v cpanm >/dev/null 2>&1; then
25+
cpan App::cpanminus
26+
fi
27+
cpanm --notest Net::DNS IO::Socket::SSL
2628
2729
- name: Perl syntax check
2830
run: perl -c poolmon

0 commit comments

Comments
 (0)