Move bech32 constants to Constants #434
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: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: [ubuntu-latest, macos-latest, windows-latest] | |
| perl: [ '5.14', '5.30', '5.36' ] | |
| exclude: | |
| - runner: windows-latest | |
| perl: '5.36' | |
| - runner: windows-latest | |
| perl: '5.14' | |
| - runner: macos-latest | |
| perl: '5.36' | |
| - runner: macos-latest | |
| perl: '5.14' | |
| runs-on: ${{matrix.runner}} | |
| name: OS ${{matrix.runner}} Perl ${{matrix.perl}} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Clone test data repo | |
| run: | | |
| git clone https://github.com/Perl-Bitcoin/test-data.git test-data | |
| - name: Set up perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: ${{ matrix.perl }} | |
| distribution: ${{ ( startsWith( matrix.runner, 'windows-' ) && 'strawberry' ) || 'default' }} | |
| - name: Show Perl Version | |
| run: | | |
| perl -v | |
| cpanm -v | |
| - name: Check if the code is tidy | |
| if: ${{ startsWith(matrix.runner, 'ubuntu-') && startsWith(matrix.perl, '5.36') }} | |
| run: | | |
| cpanm --notest Perl::Tidy Code::TidyAll | |
| tidyall -a --check-only | |
| - name: Install dependencies | |
| run: | | |
| cpanm --installdeps --notest . | |
| - name: Show Errors on Windows | |
| if: ${{ failure() && startsWith( matrix.runner, 'windows-') }} | |
| run: | | |
| ls -l C:/Users/ | |
| ls -l C:/Users/RUNNER~1/ | |
| cat C:/Users/runneradmin/.cpanm/work/*/build.log | |
| - name: Show Errors on Ubuntu | |
| if: ${{ failure() && startsWith( matrix.runner, 'ubuntu-') }} | |
| run: | | |
| cat /home/runner/.cpanm/work/*/build.log | |
| - name: Show Errors on OSX | |
| if: ${{ failure() && startsWith( matrix.runner, 'macos-') }} | |
| run: | | |
| cat /Users/runner/.cpanm/work/*/build.log | |
| - name: Run tests (normal) | |
| env: | |
| AUTHOR_TESTING: 1 | |
| RELEASE_TESTING: 1 | |
| RELEASE_TESTS_DATA: test-data | |
| run: | | |
| prove -l -r t xt | |
| - name: Run tests (with bigints) | |
| if: ${{ startsWith(matrix.perl, '5.14') }} | |
| env: | |
| AUTHOR_TESTING: 1 | |
| RELEASE_TESTING: 1 | |
| BITCOIN_CRYPTO_USE_BIGINTS: 1 | |
| RELEASE_TESTS_DATA: test-data | |
| run: | | |
| prove -l -r t xt | |