Codebase list libcatmandu-marc-perl / 1e9f1eb
add Github action workflow for Linux Johann Rolschewski 2 years ago
3 changed file(s) with 46 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 name: linux
1
2 on:
3 push:
4 branches: [ '*' ]
5 pull_request:
6 branches: [ main, dev ]
7 workflow_dispatch:
8 branches: [ '*' ]
9
10 jobs:
11 perl:
12 runs-on: ubuntu-latest
13 strategy:
14 fail-fast: false
15 matrix:
16 perl-version:
17 - '5.20'
18 - '5.22'
19 - '5.24'
20 - '5.26'
21 - '5.28'
22 - '5.30'
23 include:
24 - perl-version: '5.32'
25 os: ubuntu-latest
26 coverage: true
27 container:
28 image: perl:${{ matrix.perl-version }}
29 steps:
30 - uses: actions/checkout@v2
31 - run: env | sort
32 - run: perl -V
33 - run: cpanm -n --installdeps .
34 - name: Run tests (no coverage)
35 if: ${{ !matrix.coverage }}
36 run: prove -lr t
37 - name: Run tests (with coverage)
38 if: ${{ matrix.coverage }}
39 env:
40 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41 run: |
42 cpanm -n Devel::Cover::Report::Coveralls
43 perl Build.PL && ./Build build && cover -test -report coveralls
44 # STATUS
55
66 [![Build Status](https://travis-ci.org/LibreCat/Catmandu-MARC.svg?branch=master)](https://travis-ci.org/LibreCat/Catmandu-MARC)
7 [![Linux build status](https://github.com/LibreCat/Catmandu-MARC/actions/workflows/linux.yml/badge.svg)](https://github.com/LibreCat/Catmandu-MARC/actions/workflows/linux.yml)
78 [![Coverage](https://coveralls.io/repos/LibreCat/Catmandu-MARC/badge.png?branch=master)](https://coveralls.io/r/LibreCat/Catmandu-MARC)
89 [![CPANTS kwalitee](http://cpants.cpanauthors.org/dist/Catmandu-MARC.png)](http://cpants.cpanauthors.org/dist/Catmandu-MARC)
910
13901390 # STATUS
13911391
13921392 [![Build Status](https://travis-ci.org/LibreCat/Catmandu-MARC.svg?branch=master)](https://travis-ci.org/LibreCat/Catmandu-MARC)
1393 [![Linux build status](https://github.com/LibreCat/Catmandu-MARC/actions/workflows/linux.yml/badge.svg)](https://github.com/LibreCat/Catmandu-MARC/actions/workflows/linux.yml)
13931394 [![Coverage](https://coveralls.io/repos/LibreCat/Catmandu-MARC/badge.png?branch=master)](https://coveralls.io/r/LibreCat/Catmandu-MARC)
13941395 [![CPANTS kwalitee](http://cpants.cpanauthors.org/dist/Catmandu-MARC.png)](http://cpants.cpanauthors.org/dist/Catmandu-MARC)
13951396