Skip to content

Migrate CI from Travis to GitHub Actions (#23) #1

Migrate CI from Travis to GitHub Actions (#23)

Migrate CI from Travis to GitHub Actions (#23) #1

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
- '!gh-pages'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
perl: ["5.34", "5.36", "5.38"]
steps:
- uses: actions/checkout@v4
- name: Set up Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Update system and install dependencies
run: |
sudo apt-get update -qq
sudo apt-get -y install libhunspell-1.7-0 hunspell-en-us libhunspell-dev
- name: Install Perl modules
run: |
cd Text-Hoborg
cpanm ExtUtils::PkgConfig
cpanm File::Slurp
cpanm Lingua::EN::Fathom
cpanm Text::Hunspell
- name: Run tests
run: |
cd Text-Hoborg
perl Makefile.PL && make test