Added t/config.t #426
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
--- | |
# see https://github.com/FGasper/perl-github-action-tips | |
name: Test Code on Alpine Linux | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: alpine | |
steps: | |
# - uses: actions/checkout@main | |
- name: Install Dependencies | |
continue-on-error: true | |
run: | | |
apk update | |
apk upgrade | |
apk add perl perl-dev perl-app-cpanminus make gzip git perl-dbi gcc libaio-dev | |
apk add perl-test-most perl-test-nowarnings perl-lwp-protocol-https | |
apk add musl-dev perl-canary-stability perl-file-slurp zlib-dev perl-dbd-csv | |
apk add perl-chi perl-dbd-sqlite perl-text-csv perl-text-csv_xs perl-test-number-delta | |
apk add perl-db_file | |
# perl-test-describeme | |
perl -V | |
# cpanm -iqn ExtUtils::MakeMaker File::Spec Test::Most | |
# cpanm -iqn Sub::Identify Log::Any | |
# cpanm -iqn Sub::Private LWP::UserAgent Test::CleanNamespaces | |
cd $RUNNER_WORKSPACE | |
git clone --recurse-submodules $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git | |
cd $GITHUB_WORKSPACE | |
cpanm -iqn File::Spec ExtUtils::MakeMaker IO::AIO Locale::AU Locale::US Database::Abstraction | |
cpanm -iqn File::Open::NoCache::ReadOnly Gzip::Faster Geo::Coder::Abbreviations | |
cpanm -iqn Geo::StreetAddress::US Lingua::EN::AddressParse Config::Auto | |
cpanm -iqn LWP::UserAgent::Throttled Locale::CA Locale::Country Devel::Size | |
cpanm -iqn File::pfopen CGI::Info Geo::Location::Point Module::Info | |
cpanm -iqn Test::DescribeMe | |
cpanm -iqn Text::xSV::Slurp Test::Carp Digest::CRC Test::Needs Array::Iterator | |
cpanm -iqfn CGI::IDS | |
cpanm -iqn --installdeps . | |
env: | |
AUTOMATED_TESTING: 1 | |
- name: Make module | |
run: | | |
# find ~ -name config.log | xargs cat | |
# find ~ -name build.log | xargs cat | |
cd $GITHUB_WORKSPACE | |
perl Makefile.PL | |
make | |
env: | |
AUTOMATED_TESTING: 1 | |
- name: Run Tests | |
run: | | |
cd $GITHUB_WORKSPACE | |
make test AUTOMATED_TESTING=1 | |
env: | |
AUTOMATED_TESTING: 1 |