Migrate CI from Travis to GitHub Actions (#23) #1
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: | |
- '**' | |
- '!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 |