Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Github action workflow for Linux
- Loading branch information
Showing
3 changed files
with
46 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,44 @@ | ||
name: linux | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ main, dev ] | ||
workflow_dispatch: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
perl: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
perl-version: | ||
- '5.20' | ||
- '5.22' | ||
- '5.24' | ||
- '5.26' | ||
- '5.28' | ||
- '5.30' | ||
include: | ||
- perl-version: '5.32' | ||
os: ubuntu-latest | ||
coverage: true | ||
container: | ||
image: perl:${{ matrix.perl-version }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: env | sort | ||
- run: perl -V | ||
- run: cpanm -n --installdeps . | ||
- name: Run tests (no coverage) | ||
if: ${{ !matrix.coverage }} | ||
run: prove -lr t | ||
- name: Run tests (with coverage) | ||
if: ${{ matrix.coverage }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cpanm -n Devel::Cover::Report::Coveralls | ||
perl Build.PL && ./Build build && 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
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