Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #17
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: Run Tests | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
jobs: | |
dist: | |
name: Make distribution | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache ~/perl5 | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-dist-locallib | |
path: ~/perl5 | |
- name: Perl version | |
run: | | |
perl -v | |
- name: Install cpanm | |
run: | | |
curl -L https://cpanmin.us | perl - --sudo App::cpanminus | |
- name: Install local::lib | |
run: | | |
cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) | |
- name: Install author deps | |
shell: bash | |
run: | | |
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) | |
cpanm --notest --with-recommends --with-suggests ExtUtils::MakeMaker | |
- name: Make distribution | |
shell: bash | |
run: | | |
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) | |
perl Makefile.PL | |
make manifest dist DISTVNAME=dist | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: dist | |
path: ./dist.tar.gz | |
test: | |
needs: dist | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
perl: ['5'] | |
include: | |
- { os: 'ubuntu-latest', perl: "5.32" } | |
- { os: 'ubuntu-latest', perl: "5.30" } | |
- { os: 'ubuntu-latest', perl: "5.28" } | |
- { os: 'ubuntu-latest', perl: "5.26" } | |
- { os: 'ubuntu-latest', perl: "5.24" } | |
- { os: 'ubuntu-latest', perl: "5.22" } | |
- { os: 'ubuntu-latest', perl: "5.20" } | |
- { os: 'ubuntu-latest', perl: "5.18" } | |
- { os: 'ubuntu-latest', perl: "5.16" } | |
- { os: 'ubuntu-latest', perl: "5.14" } | |
name: Perl ${{ matrix.perl }} on ${{ matrix.os }} | |
steps: | |
- name: Get dist artifact | |
uses: actions/[email protected] | |
with: | |
name: dist | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
if: matrix.os != 'windows-latest' | |
with: | |
perl-version: ${{ matrix.perl }} | |
- name: Set up perl (Strawberry) | |
uses: shogo82148/actions-setup-perl@v1 | |
if: matrix.os == 'windows-latest' | |
with: | |
distribution: 'strawberry' | |
- run: perl -V | |
- name: Install Perl deps | |
run: | | |
cpanm --notest --installdeps dist.tar.gz | |
- name: Install develop deps | |
run: | | |
cpanm --notest --installdeps --with-develop dist.tar.gz | |
- name: Run tests | |
run: | |
cpanm --verbose --test-only dist.tar.gz |