Latest _get_params from CGI::Info #115
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-app-cpanminus make gzip git gcc perl-dev musl-dev | |
apk add perl-test-most perl-test-nowarnings perl-dbi perl-html-parser | |
apk add perl-lwp-protocol-https perl-dbd-sqlite perl-file-slurp | |
apk add perl-ipc-system-simple perl-digest-sha1 perl-cache-cache | |
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 | |
cpanm -iqn HTTP::Cache::Transparent Lingua::EN::NameCase Test::Carp | |
cpanm -ivn B::Utils LWP::UserAgent::WithCache Module::Info File::pfopen | |
cpanm -iqn --installdeps . | |
- name: Make module | |
run: | | |
# find ~ -name build.log | xargs cat | |
cd $GITHUB_WORKSPACE | |
perl Makefile.PL | |
make AUTOMATED_TESTING=1 | |
- name: Run Tests | |
run: | | |
cd $GITHUB_WORKSPACE | |
make test AUTHOR_TESTING=1 AUTOMATED_TESTING=1 | |
env: | |
AUTHOR_TESTING: 1 | |
AUTOMATED_TESTING: 1 |