Skip to content

Updated CI

Updated CI #4

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ 'master', 'main', 'develop' ]
pull_request:
branches: [ 'master', 'main' ]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
list:
name: list available perl versions
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-setup-perl@v1
- id: set-matrix
name: list available perl versions
shell: perl {0}
run: |
use Actions::Core;
set_output(matrix => {perl => [grep { $_ !~ /^(5\.(6|8|9|10|12))/ } perl_versions()]});
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
build:
runs-on: ubuntu-latest
needs: list
strategy:
fail-fast: false
matrix: ${{fromJson(needs.list.outputs.matrix)}}
name: Perl ${{ matrix.perl }}
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
- run: apt install imagemagick
- run: cpanm -n Module::Install
- run: cpanm -n Mojolicious Image::Magick
- run: cpanm -n --installdeps .
- run: prove -lv t
coverage:
runs-on: ubuntu-latest
container: davorg/perl-coveralls:latest
name: Test coverage
steps:
- uses: actions/checkout@v3
- name: Install modules Module::Install
run: cpanm Module::Install
- name: Install dependencies
run: apt install imagemagick
run: cpanm -n Module::Install

Check failure on line 60 in .github/workflows/perltest.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/perltest.yml (Line: 60, Col: 9): 'run' is already defined .github/workflows/perltest.yml (Line: 61, Col: 9): 'run' is already defined
run: cpanm -n Mojolicious Image::Magick
run: cpanm -n --installdeps .
- name: Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cover -test -report Coveralls || true