version => 1.19 #44
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 using Dist::Zilla | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Make distribution | |
shell: bash | |
run: | | |
./docker-run sh -c " | |
dzil authordeps --missing | cpanm -n; | |
dzil clean && dzil build --in build-dir" | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./build-dir | |
test: | |
needs: dist | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
perl: ['5'] | |
perl-threaded: [false] | |
alien: [false, true] | |
include: | |
- { os: 'ubuntu-latest', perl: "5.14" } | |
- { os: 'ubuntu-latest', perl: "5.16" } | |
- { os: 'ubuntu-latest', perl: "5.20" } | |
- { os: 'ubuntu-latest', perl: "5.30" } | |
- { os: 'ubuntu-latest', perl: "5.32" } | |
- { os: 'ubuntu-latest', perl: "5.34" } | |
- { os: 'ubuntu-latest', perl: "5.36" } | |
- { os: 'ubuntu-latest', perl: "5" , perl-threaded: true } | |
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}, ${{ matrix.alien }} | |
steps: | |
- name: Get dist artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
if: matrix.os != 'windows-latest' | |
with: | |
perl-version: ${{ matrix.perl }} | |
multi-thread: ${{ matrix.perl-threaded }} | |
- name: Set up perl (Strawberry) | |
uses: shogo82148/actions-setup-perl@v1 | |
if: matrix.os == 'windows-latest' | |
with: | |
distribution: 'strawberry' | |
- run: perl -V | |
- name: Set up ZeroMQ (homebrew) | |
if: matrix.os == 'macos-latest' && ! matrix.alien | |
run: | | |
brew install zeromq | |
- name: Set up ZeroMQ (vcpkg) | |
if: matrix.os == 'windows-latest' && ! matrix.alien | |
run: | | |
vcpkg install zeromq:x64-windows | |
copy C:/vcpkg/packages/zeromq_x64-windows/bin/libzmq*.dll libzmq.dll | |
echo $pwd.Path | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Install Alien::ZMQ::latest | |
if: matrix.alien | |
run: | | |
cpanm -nq Alien::ZMQ::latest | |
- name: Install Perl deps | |
run: | | |
cpanm --notest --installdeps . | |
- name: Run tests | |
run: | | |
cpanm --verbose --test-only . |