Modernize and add GitHub Workflows #4
This file contains 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: | |
branches: ['**'] | |
pull_request: | |
schedule: | |
- cron: '0 10 3 * *' # Monthly at 10am on the third | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- { icon: 🐧, name: ubuntu } | |
- { icon: 🍎, name: macos } | |
- { icon: 🪟, name: windows } | |
perl: [ '5.40', '5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20', '5.18', '5.16', '5.14', '5.12', '5.10' ] | |
name: 🐪 Perl ${{ matrix.perl }} on ${{ matrix.os.icon }} | |
runs-on: ${{ matrix.os.name }}-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl }} | |
- name: Install Dependencies | |
run: | | |
cpanm -v --notest --no-man-pages Module::Build | |
cpanm -v --notest --no-man-pages --installdeps --with-develop . | |
- name: Test | |
env: | |
AUTHOR_TESTING: 1 | |
RELEASE_TESTING: 1 | |
run: prove -lv | |
# Make sure we can build the distribution bundle. | |
- name: Test Distro | |
if: runner.os == 'Linux' | |
run: | | |
prove -l xt | |
perl Build.PL | |
./Build | |
./Build manifest | |
./Build disttest |