-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |