Skip to content

Commit

Permalink
Some GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Sep 13, 2020
1 parent 594cfde commit d6795c8
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: ubuntu

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
perl:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
perl-version:
- '5.8'
- '5.10'
- '5.12'
- '5.14'
- '5.16'
- '5.18'
- '5.20'
- '5.22'
- '5.24'
- '5.26'
- '5.28'
- '5.30'
- '5.32'
- 'latest'

container:
image: perl:${{ matrix.perl-version }}

steps:
- uses: actions/checkout@v2
- name: Platform check
run: uname -a
- name: Perl version check
run: perl -V
- name: Prepare cpan
run: |
openssl version
cpan App::a2p App::find2perl Make MIME::Parser DB_File
- name: Install
run: cpan .
- name: Run tests
run: |
perl Makefile.PL
make test
28 changes: 28 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: macos

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
perl:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
- name: Platform check
run: uname -a
- name: Set up Perl
run: brew install perl
- name: Perl version check
run: perl -V
- name: Prepare cpan
run: |
openssl version
cpan App::a2p App::find2perl Make MIME::Parser DB_File
- name: Install
run: cpan .
29 changes: 29 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: windows

on:
push:
branches:
-
tags-ignore:
-
pull_request:

jobs:
perl:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-2019
- windows-2016

steps:
- uses: actions/checkout@v2
- name: Set up Perl
run: |
choco install strawberryperl
echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
- name: Perl version
run: perl -V
- name: Install
run: cpan .

0 comments on commit d6795c8

Please sign in to comment.