Setup Perl environment on Github Action

Do you find Github Actions to setup all versions of Perl.

"Setup Perl environment" is useful.

Setup Perl environment

Basic:

steps:
- uses: actions/checkout@v2
- uses: shogo82148/actions-setup-perl@v1
  with:
    perl-version: '5.34'
- run: cpanm --installdeps .
- run: prove -lv t

Perl Club use "Setup Perl environment" on Gihub Action in SPVM development to test old Perl 5.8.9.

Examples

See the Linux example. "Setup Perl environment" has cpanm. You can install Perl modules using cpanm.

name: linux-5.8.9

on:
  push:
    branches:
      - '*'
    tags-ignore:
      - '*'
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: shogo82148/actions-setup-perl@v1
      with:
        perl-version: '5.8.9'
    - run: cpanm ExtUtils::CBuilder
    - name: perl Makefile.PL
      run: perl Makefile.PL
    - name: make
      run: make
    - name: make disttest
      run: make disttest
I'm Yuki Kimoto, one of the Perl Messagers.
News
Perl Club delivers fresh, healthy, fair, practical, lively, peaceful Perl information.