Skip to content

Update test-gccs.yml #199

Update test-gccs.yml

Update test-gccs.yml #199

Workflow file for this run

name: perl
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
ubuntu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
perl-version: ['5.10', '5.14', '5.20', '5.28', '5.32']
include:
- perl-version: '5.30'
os: ubuntu-latest
release-test: true
coverage: true
container: perl:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v2
- uses: perl-actions/install-with-cpanm@v1
with:
args: -n --installdeps --with-recommends .
sudo: false
- run: perl -V
- name: Build
run: |
perl Makefile.PL
make
- name: Run release tests # before others as may install useful stuff
if: ${{ matrix.release-test }}
env:
RELEASE_TESTING: 1
run: |
apt-get update && apt-get install -y libfile-copy-recursive-perl
cpanm -n --installdeps --with-develop .
prove -brj4 xt
- name: Run tests (no coverage)
if: ${{ !matrix.coverage }}
run: prove -brj4 t
- name: Run tests (with coverage)
if: ${{ matrix.coverage }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TESTING: 1
run: |
cpanm -n Devel::Cover::Report::Coveralls
HARNESS_PERL_SWITCHES='-MDevel::Cover=-delete,-ignore,Alien/OpenMP/Install/Files\\.pm$' prove -brj4 t xt
cover -report Coveralls
non-linux:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- uses: shogo82148/actions-setup-perl@v1
with:
distribution: strawberry # ignored non-windows
- uses: perl-actions/install-with-cpanm@v1
with:
args: -n --installdeps --with-recommends .
- run: perl -V
- name: Run tests
run: |
perl Makefile.PL
make
prove -brj4 t
darwin:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Set up Perl
run: brew install perl libomp
- name: perl -V
run: perl -V
- uses: perl-actions/install-with-cpanm@v1
with:
args: -n --installdeps --with-recommends .
sudo: false
- name: Run Tests
run: |
perl Makefile.PL
make
prove -brv t xt