Skip to content

Commit

Permalink
github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Nov 10, 2020
1 parent 931b1db commit bd26b44
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: linux

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

jobs:
perl:

runs-on: ubuntu-latest

env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 0
PERL_CARTON_PATH: $GITHUB_WORKSPACE/local

strategy:
fail-fast: false
matrix:
perl-version:
- '5.32'
- '5.30'
- '5.28'
- '5.26'
- '5.24'
- '5.22'
- '5.20'
- '5.18'
- '5.16'
- '5.14'
- '5.12'
- '5.10'
include:
- perl-version: '5.32'
os: ubuntu-latest
coverage: true

container:
image: perldocker/perl-tester:${{ matrix.perl-version }}

steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
- name: Install AnyEvent (optional)
run: "cpanm --notest AnyEvent ||:"
- name: Install IO::Async (optional)
run: "cpanm --notest IO::Async ||:"
- name: Install Mojolicious (optional)
run: "cpanm --notest Mojolicious ||:"
- name: Install Dependencies
run: cpanm --notest --installdeps .
- name: perl Makefile.PL
run: perl Makefile.PL
- name: make
run: make
- name: Run Tests (no coverage)
run: make test
- name: Run tests (with coverage)
if: ${{ matrix.coverage }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cpanm -n Devel::Cover::Report::Coveralls
cover -test -report Coveralls
42 changes: 42 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: macos

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

jobs:
perl:

runs-on: macOS-latest

env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1
PERL_CARTON_PATH: $GITHUB_WORKSPACE/local

steps:
- uses: actions/checkout@v2
- name: Set up Perl
run: brew install perl
- name: perl -V
run: perl -V
- name: Install AnyEvent (optional)
run: "curl -L https://cpanmin.us | perl - --notest AnyEvent ||:"
- name: Install IO::Async (optional)
run: "curl -L https://cpanmin.us | perl - --notest IO::Async ||:"
- name: Install Mojolicious (optional)
run: "curl -L https://cpanmin.us | perl - --notest Mojolicious ||:"
- name: Install Dependencies
run: curl -L https://cpanmin.us | perl - --notest --installdeps .
- name: perl Makefile.PL
run: perl Makefile.PL
- name: make
run: make
- name: Run tests
run: make test
31 changes: 31 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: windows

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

jobs:
perl:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Set up Perl
run: |
choco install strawberryperl
echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" >> $GITHUB_PAT
- name: perl -V
run: perl -V
- name: Install Dependencies
run: curl -L https://cpanmin.us | perl - --notest --installdeps .
- name: perl Makefile.PL
run: perl Makefile.PL
- name: make
run: make
- name: Run Tests
run: make test

0 comments on commit bd26b44

Please sign in to comment.