Skip to content

Commit

Permalink
Merge pull request #116 from jorol/github-action
Browse files Browse the repository at this point in the history
add Github action workflow for Linux
  • Loading branch information
phochste committed Feb 22, 2022
2 parents cd92f71 + 1e9f1eb commit dace1e3
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/linux.yml
@@ -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
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -5,6 +5,7 @@ Catmandu::MARC - Catmandu modules for working with MARC data
# STATUS

[![Build Status](https://travis-ci.org/LibreCat/Catmandu-MARC.svg?branch=master)](https://travis-ci.org/LibreCat/Catmandu-MARC)
[![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)
[![Coverage](https://coveralls.io/repos/LibreCat/Catmandu-MARC/badge.png?branch=master)](https://coveralls.io/r/LibreCat/Catmandu-MARC)
[![CPANTS kwalitee](http://cpants.cpanauthors.org/dist/Catmandu-MARC.png)](http://cpants.cpanauthors.org/dist/Catmandu-MARC)

Expand Down
1 change: 1 addition & 0 deletions lib/Catmandu/MARC.pm
Expand Up @@ -1391,6 +1391,7 @@ Catmandu::MARC - Catmandu modules for working with MARC data
# STATUS
[![Build Status](https://travis-ci.org/LibreCat/Catmandu-MARC.svg?branch=master)](https://travis-ci.org/LibreCat/Catmandu-MARC)
[![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)
[![Coverage](https://coveralls.io/repos/LibreCat/Catmandu-MARC/badge.png?branch=master)](https://coveralls.io/r/LibreCat/Catmandu-MARC)
[![CPANTS kwalitee](http://cpants.cpanauthors.org/dist/Catmandu-MARC.png)](http://cpants.cpanauthors.org/dist/Catmandu-MARC)
Expand Down

0 comments on commit dace1e3

Please sign in to comment.