Skip to content

Handle macOS mariadb client #813

Handle macOS mariadb client

Handle macOS mariadb client #813

Workflow file for this run

# This workflow is intended to be the default to check for compatibility across
# operating systems without much overhead. It uses the latest version of Perl on
# the latest versions of Ubuntu, macOS, and Windows. Think of it as a quick
# check for working branches.
name: πŸ’Ώ OS
on:
push:
branches: ['*']
pull_request:
jobs:
OS:
strategy:
matrix:
include:
- { icon: 🐧, os: ubuntu, name: Linux }
- { icon: 🍎, os: macos, name: macOS }
- { icon: πŸͺŸ, os: windows, name: Windows }
name: ${{ matrix.icon }} ${{ matrix.name }}
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
with: { perl-version: latest }
- 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 == '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