Building and Test Perl Projects via GitHub Workflows
July 10, 2025 ยท View on GitHub
Upgrade or Install via curl
curl https://raw.githubusercontent.com/perl-actions/ci-perl-tester-helpers/main/bin/upgrade-perl-helpers | bash
Binaries
auto-build-and-test-dist
build-dist
cpan-install-build-deps
cpan-install-dist-deps
test-dist
upgrade-perl-helpers
Environment Variables
BUILD_DIRCODECOV_TOKENCOVERALLS_TOKENHARNESS_PERL_SWITCHES
Linting
You can lint this project locally via precious lint --all
Github Actions
Commands are also available as github actions:
job:
linux:
...
steps:
...
- uses: perl-actions/ci-perl-tester-helpers/report-perl@main
- uses: perl-actions/ci-perl-tester-helpers/install-test-helper-deps@main
- uses: perl-actions/ci-perl-tester-helpers/cpan-install-build-deps@main
- uses: perl-actions/ci-perl-tester-helpers/build-dist@main
- uses: perl-actions/ci-perl-tester-helpers/cpan-install-dist-deps@main
- uses: perl-actions/ci-perl-tester-helpers/test-dist@main
env:
AUTHOR_TESTING: 1
perl-actions/ci-perl-tester-helpers/build-dist@main
Build your distribution detecting what framework you are using.
perl-actions/ci-perl-tester-helpers/cpan-install-build-deps@main
Install build dependencies (eg: dzil modules referenced in your dist.ini)
perl-actions/ci-perl-tester-helpers/cpan-install-dist-deps@main
Install dependencies of your distribution.
perl-actions/ci-perl-tester-helpers/install-helpers-deps@main
Install dependencies required by ci-perl-tester-helpers
cpm- required version min0.997014
perl-actions/ci-perl-tester-helpers/report-perl@main
Report version and configuration of available Perl
Despite being simple perl -V (for now) naming it shows intention what
you want to do.
Inputs
artifact(optional): When specified, output will be written also to this file.
Examples
Basic usage:
- uses: perl-actions/ci-perl-tester-helpers/report-perl@main
Save output to a file:
- uses: perl-actions/ci-perl-tester-helpers/report-perl@main
with:
artifact: perl-version.txt
perl-actions/ci-perl-tester-helpers/test-dist@main
Tests your distribution using prove with --state save.
Recognizes env variables:
AUTHOR_TESTINGIf set to1, includes tests inxtdirectory (if available)