Skip to content

und3f/ci-perl-tester-helpers

 
 

Repository files navigation

Building and Test Perl Projects via GitHub Workflows

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_DIR
  • CODECOV_TOKEN
  • COVERALLS_TOKEN
  • HARNESS_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/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 min 0.997014

perl-actions/ci-perl-tester-helpers/test-dist@main

Tests your distribution using prove with --state save.

Recognizes env variables:

  • AUTHOR_TESTING If set to 1, includes tests in xt directory (if available)

About

Building and Test Perl Projects via GitHub Workflows

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 74.9%
  • Perl 18.5%
  • Makefile 6.6%