Perl #65
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: Perl | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 3 * * 0' | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: [ubuntu-latest] | |
| perl: [ '5.12', '5.30', '5.36' ] | |
| runs-on: ${{matrix.runner}} | |
| name: OS ${{matrix.runner}} Perl ${{matrix.perl}} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: ${{ matrix.perl }} | |
| distribution: 'default' | |
| - name: Install libqrencode | |
| run: | | |
| sudo apt install -y libqrencode-dev | |
| - name: Show Perl Version | |
| run: | | |
| perl -v | |
| cpanm -v | |
| - name: Install dependencies | |
| run: | | |
| cpanm --installdeps --notest . | |
| - name: Show Errors on Ubuntu | |
| if: ${{ failure() && startsWith( matrix.runner, 'ubuntu-') }} | |
| run: | | |
| cat /home/runner/.cpanm/work/*/build.log | |
| - name: Run tests | |
| env: | |
| AUTHOR_TESTING: 1 | |
| RELEASE_TESTING: 1 | |
| run: | | |
| prove -l -v | |