Skip to content

Add imports to customize extension matching #138

Add imports to customize extension matching

Add imports to customize extension matching #138

Workflow file for this run

name: ✅ CI
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os:
- { icon: 🐧, name: ubuntu }
- { icon: 🍎, name: macos }
- { icon: 🪟, name: 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', '5.10', '5.8' ]
name: 🐪 Perl ${{ matrix.perl }} on ${{ matrix.os.icon }}
runs-on: ${{ matrix.os.name }}-latest
steps:
- uses: actions/checkout@v4
# gem install asciidoctor fails on Linux without this.
- name: Setup Ruby
uses: ruby/setup-ruby@v1
if: runner.os == 'Linux'
with: { ruby-version: '3.2' }
# Gonna need Perl, of course.
- name: Setup Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
# Install Perl dependencies plus docutils (rest) and asciidoc.
- name: Install Dependencies
run: |
perl -V
cpanm -v --notest --no-man-pages Module::Build Archive::Tar ExtUtils::PL2Bat
cpanm -v --notest --no-man-pages --installdeps --with-develop .
pip3 install docutils asciidoc
gem install asciidoctor
- name: Brew CommonMark
if: runner.os == 'macOS'
run: |
brew install cmark
cpanm -v --notest --no-man-pages CommonMark --configure-args="INC=-I'$(brew --prefix)/include' LIBS=-L'$(brew --prefix)/lib -lcmark'"
- name: Apt CommonMark
if: runner.os == 'Linux'
run: |
sudo apt-get install libcmark-dev
cpanm -v --notest --no-man-pages CommonMark
# Testing default implmementations, excluding AsciiDoctor and CommonMark.
- name: Test
env:
AUTHOR_TESTING: 1
RELEASE_TESTING: 1
TEXT_MARKUP_TEST_ALL: 1
TEXT_MARKUP_SKIP_COMMONMARK: ${{ matrix.os.name == 'windows' }}
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