Skip to content

Combine similar Makefile.PL code #77

Combine similar Makefile.PL code

Combine similar Makefile.PL code #77

Workflow file for this run

name: Test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
# All supported Perl versions except latest.
perl: [
'5.12', '5.14', '5.16', '5.18', '5.20', '5.22', '5.24', '5.26',
'5.28', '5.30', '5.32', '5.34', '5.36', '5.38',
]
# Variants of the latest Perl.
include:
- no-memcached: true
os: macos-latest
perl: '5.40'
- no-memcached: true
os: windows-2019 # FIXME windows-latest (aka 2022) fails.
perl: '5.40'
- name: ' (no memcached)'
no-memcached: true
os: ubuntu-latest
perl: '5.40'
# This is effectively our normal one, author with ithreads.
- name: ' (author, ithread)'
author: true
ithread: true
os: ubuntu-latest
perl: '5.40'
runs-on: ${{ matrix.os }}
name: v${{ matrix.perl }} on ${{ matrix.os }}${{ matrix.name }}
steps:
- uses: actions/checkout@v2
- if: ${{ !matrix.no-memcached }}
uses: niden/actions-memcached@v7
- uses: shogo82148/actions-setup-perl@v1
with:
multi-thread: ${{ matrix.ithread }}
perl-version: ${{ matrix.perl }}
- run: perl -v
- if: ${{ !matrix.author }}
run: cpanm --installdeps --notest .
- if: ${{ matrix.author }}
run: cpanm --installdeps --notest --with-develop .
- run: perl Makefile.PL
- if: ${{ !matrix.author }}
run: make test
- if: ${{ matrix.author }}
env:
AUTHOR_TESTING: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cover -ignore_re '\.h$' -report Coveralls -test