Add links to README badges #295
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Linux (build --without_uk and install) | |
jobs: | |
build: | |
runs-on: 'ubuntu-latest' | |
name: Perl 5.32 build --without_uk 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 --without_uk INSTALL_BASE=$HOME/test_install | |
make test TEST_VERBOSE=1 | |
make install | |
perl -I$HOME/test_install/lib/perl5 -MData::Dumper::Concise -MNumber::Phone -e 'if(Number::Phone->new("+447979866975")->isa("Number::Phone::StubCountry::GB")) { print "N::P built/installed correctly without N::P::UK\n".Dumper(\%INC); exit(0) } else { print "N::P build/install failed\n"; exit(1) }' |