Latest workflows #37
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
name: parallel | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
jobs: | |
perl: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
perl-version: | |
- 'latest' | |
container: | |
image: perl:${{ matrix.perl-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Platform check | |
run: uname -a | |
- name: Perl version check | |
run: perl -V | |
- name: Install cpanm and multiple modules | |
run: | | |
curl -L https://cpanmin.us | perl - App::cpanminus | |
cpanm --notest IO::Socket::SSL | |
cpanm --notest App::Cpan | |
cpan -M https://www.cpan.org -T ExtUtils::MakeMaker | |
- name: Install dependencies | |
run: | | |
cpan -M https://www.cpan.org -T . | |
- name: Run tests | |
run: | | |
perl Makefile.PL | |
HARNESS_OPTIONS=j9 make test |