Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello GitHub Actions #12

Merged
merged 8 commits into from
Mar 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "Test"
on:
pull_request:
push:
branches:
- 'master'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - windows-latest
- macos-latest
perl:
- "5.30"
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Perl ${{ matrix.perl }}
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}

- name: Install
run: |
cpanm --notest --installdeps .
perl Build.PL
./Build build
- name: Test
run: prove -lv t

coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up latest Perl 5
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.x'

- name: Install
run: |
cpanm --notest --installdeps .
cpanm --notest Devel::Cover Devel::Cover::Report::Coveralls
perl Build.PL
./Build build
- name: Test
run: cover -test -report coveralls
env:
COVERALLS_REPO_TOKEN: ${{ github.token }}
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ perl:
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
before_install:
- cpanm -n Devel::Cover::Report::Coveralls
script:
Expand Down