Skip to content

Commit

Permalink
Merge 7f47211 into 69a76c6
Browse files Browse the repository at this point in the history
  • Loading branch information
atoomic committed May 8, 2020
2 parents 69a76c6 + 7f47211 commit a0097c9
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 115 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/linux.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/macos.yml

This file was deleted.

181 changes: 181 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,181 @@
name: 'Build & Test'

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

jobs:

###
### Fast Test on System Perl
###

ubuntu-latest:
runs-on: ubuntu-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
- run: perl -V
- name: install deps using cpm
uses: perl-actions/install-with-cpm@v1.3
with:
install: |
B::COW
- run: perl Makefile.PL
- run: make
- run: make test

###
### linux testing multiple Perl versions
###

linux:
runs-on: ubuntu-latest
name: "perl v${{ matrix.perl-version }}"

strategy:
fail-fast: false
matrix:
perl-version:
- "5.30"
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
- "5.8"

needs: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- run: perl -V
- name: install deps using cpm
uses: perl-actions/install-with-cpm@v1.3
with:
install: |
B::COW
sudo: false
- run: perl Makefile.PL
- run: make
- run: make test
env:
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1

###
### macOS testing
###

macos:
name: macOS Perl v${{ matrix.perl-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["macos-latest"]
perl-version:
- "5.30"
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
needs: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Up Perl
uses: shogo82148/actions-setup-perl@v1.3.0
with:
perl-version: ${{ matrix.perl-version }}
- run: perl -V
- name: install deps using cpm
uses: perl-actions/install-with-cpm@v1.3
with:
install: |
B::COW
sudo: false
- name: perl Makefile.PL
run: perl Makefile.PL
- name: make
run: make
- name: Run Tests
run: make test
env:
AUTHOR_TESTING: 1
RELEASE_TESTING: 1

###
### windows testing
###

windows:
name: windows Perl v${{ matrix.perl-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest"]
perl-version:
- "5.30"
- "5.28"
- "5.26"
- "5.24"
# make issue <= 5.22 view GH issue https://github.com/shogo82148/actions-setup-perl/issues/223
# - "5.22"
# - "5.20.3"
# - "5.18.4"
# - "5.16.3"
# - "5.14.4"
# - "5.12.5"
# - "5.10.1"
needs: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Up Perl
uses: shogo82148/actions-setup-perl@v1.3.0
with:
perl-version: ${{ matrix.perl-version }}
- run: perl -V
- name: install deps using cpanm
uses: perl-actions/install-with-cpanm@v1.1
with:
install: |
B::COW
sudo: false
- name: perl Makefile.PL
run: perl Makefile.PL
- name: make
run: make
- name: Run Tests
run: make test
env:
AUTHOR_TESTING: 1
RELEASE_TESTING: 1


36 changes: 0 additions & 36 deletions .github/workflows/windows.yml

This file was deleted.

0 comments on commit a0097c9

Please sign in to comment.