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
4 changed files
with
181 additions
and
115 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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 | ||
|
||
|
This file was deleted.
Oops, something went wrong.