add Github action workflow for Linux
Johann Rolschewski
2 years ago
|
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
|
4 | 4 |
# STATUS
|
5 | 5 |
|
6 | 6 |
[![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)
|
7 | 8 |
[![Coverage](https://coveralls.io/repos/LibreCat/Catmandu-MARC/badge.png?branch=master)](https://coveralls.io/r/LibreCat/Catmandu-MARC)
|
8 | 9 |
[![CPANTS kwalitee](http://cpants.cpanauthors.org/dist/Catmandu-MARC.png)](http://cpants.cpanauthors.org/dist/Catmandu-MARC)
|
9 | 10 |
|
1390 | 1390 |
# STATUS
|
1391 | 1391 |
|
1392 | 1392 |
[![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)
|
1393 | 1394 |
[![Coverage](https://coveralls.io/repos/LibreCat/Catmandu-MARC/badge.png?branch=master)](https://coveralls.io/r/LibreCat/Catmandu-MARC)
|
1394 | 1395 |
[![CPANTS kwalitee](http://cpants.cpanauthors.org/dist/Catmandu-MARC.png)](http://cpants.cpanauthors.org/dist/Catmandu-MARC)
|
1395 | 1396 |
|