Add testing Perl versions. #16
This file contains hidden or 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: CI | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| unit-test: | |
| name: Unit Test | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| perl: | |
| - "5.30" | |
| - "5.32" | |
| - "5.34" | |
| - "5.36" | |
| - "5.38" | |
| - "5.40" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: ${{ matrix.perl }} | |
| - run: | | |
| cpanm --notest Module::Build Module::Build::XSUtil | |
| perl Build.PL | |
| cpanm --installdeps . | |
| - run: perl Build | |
| - run: perl Build test |