Skip to content

Tests no longer need to know about 32-bit deprecation warnings, as th… #363

Tests no longer need to know about 32-bit deprecation warnings, as th…

Tests no longer need to know about 32-bit deprecation warnings, as th… #363

on: [push, pull_request]
name: Linux (normal build and install)
jobs:
build:
runs-on: 'ubuntu-latest'
name: Perl 5.32 normal build and install
steps:
- name: check out code
uses: actions/checkout@v4
- name: switch to perl 5.32
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: 5.32
- name: run tests
env:
BUILD_TEST: 1
PERL_USE_UNSAFE_INC: 0
run: |
perl -v
perl -MData::Dumper -e 'eval "use Number::Phone"; if(!$@) { print "Number::Phone is already installed, argh\n".Dumper(\%INC); exit(1) } else { print "Number::Phone not yet installed, hurrah\n"; exit(0) }'
cpanm --quiet --notest ExtUtils::MakeMaker Test::Pod Test::Pod::Coverage parent
cpanm --quiet --notest Data::Dumper::Concise File::ShareDir::Install XML::XPath Data::CompactReadonly File::Find::Rule Spreadsheet::XLSX Text::CSV_XS LWP::Protocol::https
cpanm --quiet --notest --installdeps .
./build-data.sh
perl Makefile.PL
make test TEST_VERBOSE=1
make install
perl -MData::Dumper::Concise -MNumber::Phone -e 'if(Number::Phone->new("+447979866975")->operator() =~ /vodafone/i) { print "N::P::UK built/installed correctly\n".Dumper(\%INC); exit(0) } else { print "N::P::UK build/install failed\n"; exit(1) }'