Handle macOS mariadb client #267
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
# This workflow tests Sqitch's basic functionality (no database testing) on all | |
# supported versions of Perl on Ubuntu, macOS, and Windows. It runs for pushes | |
# and pull requests on the main and develop branches. | |
name: π§ Perl | |
on: | |
push: | |
branches: [main, develop, "**perl**"] | |
pull_request: | |
branches: [main, develop, "**perl**"] | |
jobs: | |
Perl: | |
strategy: | |
matrix: | |
os: [[π§, ubuntu], [π, macos], [πͺ, windows]] | |
perl: [ '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' ] | |
exclude: | |
- { os: [πͺ, windows], perl: '5.12' } # https://github.com/shogo82148/actions-setup-perl/issues/876 | |
- { os: [πͺ, windows], perl: '5.14' } # https://github.com/shogo82148/actions-setup-perl/issues/881 | |
name: π§ Perl ${{ matrix.perl }} on ${{ matrix.os[0] }} ${{ matrix.os[1] }} | |
runs-on: ${{ matrix.os[1] }}-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Perl | |
id: perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: { perl-version: "${{ matrix.perl }}" } | |
- run: perl -V | |
- name: Cache CPAN Modules | |
uses: actions/cache@v3 | |
with: | |
path: local | |
key: perl-${{ steps.perl.outputs.perl-hash }} | |
# Remove Locale::TextDomain if https://github.com/gflohr/libintl-perl/issues/7 fixed and released. | |
- if: ${{ matrix.os[1] == 'windows' }} | |
run: cpm install --verbose --show-build-log-on-failure --no-test --with-recommends Encode Win32::Console::ANSI Win32API::Net Win32::Locale Win32::ShellQuote DateTime::TimeZone::Local::Win32 Locale::TextDomain@1.31 | |
- run: cpm install --verbose --show-build-log-on-failure --no-test --with-recommends --cpanfile dist/cpanfile | |
- run: cpm install --verbose --show-build-log-on-failure --no-test --with-recommends Test::Spelling Test::Pod Test::Pod::Coverage | |
- name: prove | |
env: { PERL5LIB: "${{ github.workspace }}/local/lib/perl5" } | |
run: prove -lrj4 |