Skip to content

Commit

Permalink
Merge pull request #47 from szabgab/ci
Browse files Browse the repository at this point in the history
add GitHub Actions
  • Loading branch information
charsbar authored Sep 9, 2023
2 parents 8c3ea21 + f2bbb0e commit 6add9b9
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:
# schedule:
# - cron: '42 5 * * *'

jobs:
test:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, macos-latest, windows-latest]
perl: [ '5.30', '5.36' ]
exclude:
- runner: windows-latest
perl: '5.36'

runs-on: ${{matrix.runner}}
name: OS ${{matrix.runner}} Perl ${{matrix.perl}}

steps:
- uses: actions/checkout@v3

- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
distribution: ${{ ( matrix.runner == 'windows-latest' && 'strawberry' ) || 'default' }}

- name: Show Perl Version
run: |
perl -v
- name: Install Modules
run: |
cpanm -v
cpanm --installdeps --with-develop --notest .
# --with-configure
# --with-recommends, --with-suggests
- name: Run tests
#env:
# AUTHOR_TESTING: 1
# RELEASE_TESTING: 1
run: |
perl Makefile.PL
make
make test

0 comments on commit 6add9b9

Please sign in to comment.