Merge pull request #79 from cpan-authors/koan.toddr.bot/fix-manifest-… #114
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: testsuite | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| tags-ignore: | |
| - "*" | |
| pull_request: | |
| jobs: | |
| ubuntu: | |
| runs-on: ubuntu-latest | |
| env: | |
| PERL_USE_UNSAFE_INC: 0 | |
| AUTHOR_TESTING: 1 | |
| AUTOMATED_TESTING: 1 | |
| RELEASE_TESTING: 1 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: perl -V | |
| run: perl -V | |
| - name: Install libcurl headers | |
| run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev | |
| - name: Install Dependencies | |
| uses: perl-actions/install-with-cpm@v1.9 | |
| with: | |
| cpanfile: "cpanfile" | |
| - name: perl Makefile.PL | |
| run: perl Makefile.PL | |
| - name: make test | |
| run: make test | |
| perl-versions: | |
| runs-on: ubuntu-latest | |
| needs: [ubuntu] | |
| name: List Perl versions | |
| outputs: | |
| perl-versions: ${{ steps.action.outputs.perl-versions }} | |
| steps: | |
| - id: action | |
| uses: perl-actions/perl-versions@v2 | |
| with: | |
| since-perl: "5.14" | |
| with-devel: true | |
| linux: | |
| name: "Perl ${{ matrix.perl-version }}" | |
| needs: [perl-versions] | |
| runs-on: ubuntu-latest | |
| env: | |
| PERL_USE_UNSAFE_INC: 0 | |
| AUTHOR_TESTING: 1 | |
| AUTOMATED_TESTING: 1 | |
| RELEASE_TESTING: 1 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| perl-version: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }} | |
| container: | |
| image: perldocker/perl-tester:${{ matrix.perl-version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: perl -V | |
| run: perl -V | |
| - name: Install libcurl headers | |
| run: apt-get update && apt-get install -y libcurl4-openssl-dev pkg-config | |
| - name: Install Dependencies | |
| uses: perl-actions/install-with-cpm@v1.9 | |
| with: | |
| sudo: false | |
| cpanfile: "cpanfile" | |
| - run: perl Makefile.PL | |
| - run: make | |
| - run: make test | |
| macOS: | |
| needs: [ubuntu, linux] | |
| runs-on: macos-latest | |
| env: | |
| PERL_USE_UNSAFE_INC: 0 | |
| AUTHOR_TESTING: 1 | |
| AUTOMATED_TESTING: 1 | |
| RELEASE_TESTING: 1 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Perl | |
| run: brew install perl | |
| - name: perl -V | |
| run: perl -V | |
| - name: Install libcurl headers | |
| run: brew install curl | |
| - name: Install Dependencies | |
| uses: perl-actions/install-with-cpm@v1.9 | |
| with: | |
| sudo: false | |
| cpanfile: "cpanfile" | |
| - run: perl Makefile.PL | |
| - run: make | |
| - run: make test | |
| windows: | |
| needs: [ubuntu, linux] | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Perl | |
| run: | | |
| choco install strawberryperl | |
| echo @" | |
| C:\strawberry\c\bin | |
| C:\strawberry\perl\site\bin | |
| C:\strawberry\perl\bin | |
| "@ | | |
| Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| - name: perl -V | |
| run: perl -V | |
| - name: Install Dependencies | |
| uses: perl-actions/install-with-cpm@v1.9 | |
| with: | |
| sudo: false | |
| cpanfile: "cpanfile" | |
| - name: perl Makefile.PL | |
| run: perl Makefile.PL | |
| - name: make | |
| run: make | |
| - name: Run Tests | |
| run: make test |