Move CI from Azure Pipelines to GitHub Actions #9
Workflow file for this run
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: Run tests | |
on: [push, pull_request] | |
jobs: | |
test-matrix: | |
name: ${{ matrix.platform.os-name }} with Perl ${{ matrix.perl-version }} | |
runs-on: ${{ matrix.platform.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- os-name: Linux | |
runs-on: ubuntu-24.04 | |
perl-version: | |
- "5" | |
# - 5.14 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl-version }} | |
enable-modules-cache: false | |
- name: Install Dist::Zilla and Test::Harness | |
run: cpm install --global Dist::Zilla Test::Harness | |
- name: Generate list of author deps | |
run: dzil authordeps | grep -v '^inc::' > /tmp/dzil-authordeps.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "dzil-authordeps-${{matrix.platform.os-name}}-perl-${{ matrix.perl-version }}.txt" | |
path: /tmp/dzil-authordeps.txt | |
- name: Install author deps | |
run: cpm install --global $(cat /tmp/dzil-authordeps.txt) | |
- name: Generate list of module deps | |
run: dzil listdeps --develop | grep -v '^inc::' > /tmp/dzil-listdeps.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "dzil-listdeps-${{matrix.platform.os-name}}-perl-${{ matrix.perl-version }}.txt" | |
path: /tmp/dzil-listdeps.txt | |
- name: Install module deps | |
run: cpm install --global $(cat /tmp/dzil-listdeps.txt) | |
- name: Run tests | |
run: dzil test --all |