Merge pull request #6 from demerphq/yves/test_action #4
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: | |
| unix: | |
| name: ${{ matrix.os }} / perl-${{ matrix.perl }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| perl: "5.18" | |
| - os: ubuntu-latest | |
| perl: "5.40" | |
| - os: macos-latest | |
| perl: "5.40" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: ${{ matrix.perl }} | |
| - name: Show perl version | |
| run: perl -V | |
| - name: Configure | |
| run: perl Makefile.PL | |
| - name: Build | |
| run: make -j2 | |
| - name: Test | |
| run: make test HARNESS_OPTIONS=j2 | |
| windows: | |
| name: windows-latest / strawberry | |
| runs-on: windows-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - run: git config --global core.autocrlf false | |
| - uses: actions/checkout@v6 | |
| - name: Configure | |
| shell: pwsh | |
| run: | | |
| $env:path = "c:\strawberry\c\bin;"+$env:path | |
| perl Makefile.PL | |
| - name: Build | |
| shell: pwsh | |
| run: | | |
| $env:path = "c:\strawberry\c\bin;"+$env:path | |
| gmake -j2 | |
| - name: Test | |
| shell: pwsh | |
| run: | | |
| $env:path = "c:\strawberry\c\bin;"+$env:path | |
| gmake test HARNESS_OPTIONS=j2 |