Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/make_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,23 @@ jobs:
perl: "5.8"
fail-fast: false
env:
MODULES: ${{ matrix.perl == '5.8' && 'Socket6 Net::CIDR::Lite Test::More version' || 'Socket6 Net::CIDR::Lite' }}
MAKECMD: ${{ (matrix.os == 'windows-latest' && matrix.perl == '5.20' && 'dmake') || (matrix.os == 'windows-latest' && 'gmake') || 'make' }}
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
install-modules-with: cpanm
install-modules: ${{ env.MODULES }}
distribution: ${{ matrix.os == 'windows-latest' && 'strawberry' || 'default' }}
- run: |
touch cpanfile
echo 'requires "Net::CIDR::Lite" => "0";' >> cpanfile
echo 'requires "Socket" => "0";' >> cpanfile
echo 'requires "Socket6" => "0";' >> cpanfile
echo 'requires "Test::More" => "0.88";' >> cpanfile
echo 'requires "Test::Pod" => "1.00";' >> cpanfile
echo 'requires "version" => "0";' >> cpanfile
- run: cpanm --insecure --installdeps .
- run: perl Makefile.PL
- run: make
- run: make test
- run: ${{ env.MAKECMD }}
- run: ${{ env.MAKECMD }} test TEST_VERBOSE=1